(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_error_dlg.c) |
| |
| 120 | | | sctp_error_on_frame (GtkButton *button _U_, gpointer user_data _U_) |
| 121 | | | { |
| 122 | | | |
| 123 | | | if (selected_packet==NULL) |
| 124 | | | return; |
| 125 | | | |
| 126 | | | if (selected_packet) |
Redundant Condition
selected_packet 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 selected_packet cannot be false.
- A crashing bug occurs on every path where selected_packet could have evaluated to false. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 127 | | | cf_goto_frame(&cfile, selected_packet->frame_number); |
| 128 | | | } |
| |