(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/bootp_stat.c) |
| |
| 151 | | | dhcpstat_draw(void *psp) |
| 152 | | | { |
| 153 | | | dhcpstat_t *sp=psp; |
| 154 | | | guint index; |
| 155 | | | |
| 156 | | | index=sp->index; |
| 157 | | | g_hash_table_foreach( sp->hash, (GHFunc) dhcp_draw_message_type, NULL ); |
| 158 | | | if (index != sp->index){ |
Redundant Condition
index != sp->index always evaluates to false. This may be because: - There is a constant assignment to one or more of the variables involved.
- An earlier conditional statement has already ensured that index != sp->index cannot be true.
- A crashing bug occurs on every path where index != sp->index could have evaluated to true. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 159 | | | |
| 160 | | | |
| 161 | | | gtk_table_resize ( GTK_TABLE(sp->table_message_type), sp->index % 2 , 4);
x /usr/include/gtk-2.0/gtk/gtktable.h |
| |
41 | #define GTK_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) |
| |
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/gtktable.h |
| |
40 | #define GTK_TYPE_TABLE (gtk_table_get_type ()) |
| |
|
| 162 | | | } |
| 163 | | | |
| 164 | | | } |
| |