(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/filter_dlg.c) |
| |
| 877 | | | filter_dlg_cancel_cb(GtkWidget *cancel_bt, gpointer data) |
| 878 | | | { |
| 879 | | | filter_list_type_t list_type = *(filter_list_type_t *)data; |
| 880 | | | GtkWidget *main_w = gtk_widget_get_toplevel(cancel_bt); |
| 881 | | | static GList *filter_list; |
| 882 | | | |
| 883 | | | |
| 884 | | | window_destroy(GTK_WIDGET(main_w));
x /usr/include/gtk-2.0/gtk/gtkwidget.h |
| |
137 | #define GTK_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/gtk-2.0/gtk/gtkwidget.h |
| |
136 | #define GTK_TYPE_WIDGET (gtk_widget_get_type ()) |
| |
|
| 885 | | | |
| 886 | | | |
| 887 | | | filter_list = get_filter_dialog_list(list_type); |
| 888 | | | if(g_list_length(filter_list) == 0) { |
| 889 | | | |
| 890 | | | switch (list_type) { |
| 891 | | | case CFILTER_EDITED_LIST: |
| 892 | | | copy_filter_list(CFILTER_EDITED_LIST, CFILTER_LIST); |
| 893 | | | break; |
| 894 | | | case DFILTER_EDITED_LIST: |
| 895 | | | copy_filter_list(DFILTER_EDITED_LIST, DFILTER_LIST); |
| 896 | | | break; |
| 897 | | | default: |
Unreachable Call
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 898 | | | 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__)) |
| |
|
| 899 | | | break; |
| 900 | | | } |
| 901 | | | } |
| 902 | | | |
| 903 | | | #if 0 |
| 904 | | | |
| 905 | | | g_list_foreach(get_filter_dialog_list(list_type), filter_dlg_update_list_cb, &list_type); |
| 906 | | | #endif |
| 907 | | | } |
| |