(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/cfilter_combo_utils.c) |
| |
| 83 | | | cfilter_combo_add_recent(gchar *s) { |
| 84 | | | gchar *dup; |
| 85 | | | |
| 86 | | | dup = g_strdup(s); |
| 87 | | | if (!cfilter_combo_add(dup)) { |
Redundant Condition
cfilter_combo_add(dup) always evaluates to true. 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 cfilter_combo_add(dup) cannot be false.
- A crashing bug occurs on every path where cfilter_combo_add(dup) could have evaluated to false. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 88 | | | g_free(dup); |
| 89 | | | return FALSE; |
| 90 | | | } |
| 91 | | | return TRUE; |
| 92 | | | } |
| |