(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/voip_calls_dlg.c) |
| |
| 620 | | | voip_calls_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2) |
| 621 | | | { |
| 622 | | | char *text1 = NULL; |
| 623 | | | char *text2 = NULL; |
| 624 | | | guint i1, i2, i3, i4; |
| 625 | | | |
| 626 | | | const GtkCListRow *row1 = (const GtkCListRow *) ptr1; |
| 627 | | | const GtkCListRow *row2 = (const GtkCListRow *) ptr2; |
| 628 | | | |
| 629 | | | text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
112 | #define GTK_CELL_TEXT(cell) (((GtkCellText *) &(cell))) |
| |
|
| 630 | | | text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
112 | #define GTK_CELL_TEXT(cell) (((GtkCellText *) &(cell))) |
| |
|
| 631 | | | |
| 632 | | | switch(clist->sort_column){ |
| 633 | | | case CALL_COL_START_TIME: |
| 634 | | | case CALL_COL_STOP_TIME: |
| 635 | | | if ((sscanf(text1, "%u.%u", &i1, &i2) != 2) || |
| 636 | | | (sscanf(text2, "%u.%u", &i3, &i4) != 2) ){ |
| 637 | | | return 0; |
| 638 | | | } |
| 639 | | | if (i1>i3) |
| 640 | | | return 1; |
| 641 | | | if (i1<i3) |
| 642 | | | return -1; |
| 643 | | | return (i3-i4); |
| 644 | | | case CALL_COL_INITIAL_SPEAKER: |
| 645 | | | case CALL_COL_FROM: |
| 646 | | | case CALL_COL_TO: |
| 647 | | | case CALL_COL_PROTOCOL: |
| 648 | | | case CALL_COL_STATE: |
| 649 | | | case : |
| 650 | | | return strcmp (text1, text2); |
| 651 | | | case CALL_COL_PACKETS: |
| 652 | | | i1=atoi(text1); |
| 653 | | | i2=atoi(text2); |
| 654 | | | return i1-i2; |
| 655 | | | } |
| 656 | | | g_assert_not_reached();
x /usr/include/glib-2.0/glib/gtestutils.h |
| |
73 | #define g_assert_not_reached() do { g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } while (0) |
| |
x /usr/include/glib-2.0/glib/gmacros.h |
| |
160 | # define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) |
| |
|
| 657 | | | return 0; |
Unreachable Data Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 658 | | | } |
| |