Unreachable Data Flow at mcast_stream_dlg.c:321 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
mcaststream_sort_column (/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/mcast_stream_dlg.c)![]() | ||||||
![]() | ||||||
290 | mcaststream_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2) | |||||
291 | { | |||||
292 | char *text1 = NULL; | |||||
293 | char *text2 = NULL; | |||||
294 | int i1, i2; | |||||
295 | ||||||
296 | const GtkCListRow *row1 = (const GtkCListRow *) ptr1; | |||||
297 | const GtkCListRow *row2 = (const GtkCListRow *) ptr2; | |||||
298 | ||||||
299 | text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text; | |||||
300 | text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text; | |||||
301 | ||||||
302 | switch(clist->sort_column){ | |||||
303 | case 0: | |||||
304 | case 2: | |||||
305 | return strcmp (text1, text2); | |||||
306 | case 1: | |||||
307 | case 3: | |||||
308 | case 4: | |||||
309 | case 5: | |||||
310 | case 6: | |||||
311 | case 7: | |||||
312 | case 8: | |||||
313 | case 9: | |||||
314 | case 10: | |||||
315 | case 11: | |||||
316 | i1=atoi(text1); | |||||
317 | i2=atoi(text2); | |||||
318 | return i1-i2; | |||||
319 | } | |||||
320 | g_assert_not_reached(); | |||||
321 | return 0;
| |||||
322 | } | |||||
![]() |