Unreachable Data Flow at rtp_stream_dlg.c:679 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
rtpstream_sort_column (/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_stream_dlg.c)![]() | ||||||
![]() | ||||||
648 | rtpstream_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2) | |||||
649 | { | |||||
650 | char *text1 = NULL; | |||||
651 | char *text2 = NULL; | |||||
652 | int i1, i2; | |||||
653 | ||||||
654 | const GtkCListRow *row1 = (const GtkCListRow *) ptr1; | |||||
655 | const GtkCListRow *row2 = (const GtkCListRow *) ptr2; | |||||
656 | ||||||
657 | text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text; | |||||
658 | text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text; | |||||
659 | ||||||
660 | switch(clist->sort_column){ | |||||
661 | case 0: | |||||
662 | case 2: | |||||
663 | case 5: | |||||
664 | case 11: | |||||
665 | return strcmp (text1, text2); | |||||
666 | case 1: | |||||
667 | case 3: | |||||
668 | case 4: | |||||
669 | case 6: | |||||
670 | case 7: | |||||
671 | case 8: | |||||
672 | case 9: | |||||
673 | case 10: | |||||
674 | i1=atoi(text1); | |||||
675 | i2=atoi(text2); | |||||
676 | return i1-i2; | |||||
677 | } | |||||
678 | g_assert_not_reached(); | |||||
679 | return 0;
| |||||
680 | } | |||||
![]() |