(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/prefs_dlg.c) |
| |
| 723 | | | label_to_enum_val(GtkWidget *label, const enum_val_t *enumvals) |
| 724 | | | { |
| 725 | | | const gchar *label_string; |
| 726 | | | int i; |
| 727 | | | |
| 728 | | | |
| 729 | | | |
| 730 | | | |
| 731 | | | |
| 732 | | | label_string = gtk_label_get_text(GTK_LABEL(label));
x /usr/include/gtk-2.0/gtk/gtklabel.h |
| |
42 | #define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) |
| |
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/gtklabel.h |
| |
41 | #define GTK_TYPE_LABEL (gtk_label_get_type ()) |
| |
|
| 733 | | | |
| 734 | | | for (i = 0; enumvals[i].name != NULL; i++) { |
| 735 | | | if (g_ascii_strcasecmp(label_string, enumvals[i].description) == 0) { |
| 736 | | | return enumvals[i].value; |
| 737 | | | } |
| 738 | | | } |
| 739 | | | 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__)) |
| |
|
| 740 | | | return -1; |
Unreachable Computation
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 741 | | | } |
| |