(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/tvbuff.c) |
| |
| 302 | | | tvbuff_t* |
| 303 | | | tvb_new_child_real_data(tvbuff_t *parent, const guint8* data, guint length, gint reported_length) |
| 304 | | | { |
| 305 | | | tvbuff_t *tvb = tvb_new_real_data(data, length, reported_length); |
| 306 | | | if (tvb) { |
Redundant Condition
tvb 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 tvb cannot be false.
- A crashing bug occurs on every path where tvb could have evaluated to false. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 307 | | | tvb_set_child_real_data_tvbuff (parent, tvb); |
| 308 | | | } |
| 309 | | | |
| 310 | | | return tvb; |
| 311 | | | } |
| |