(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/stats_tree.c) |
| |
| 492 | | | stats_tree_create_node(stats_tree *st, const gchar *name, int parent_id, gboolean with_hash) |
| 493 | | | { |
| 494 | | | stat_node *node = new_stat_node(st,name,parent_id,with_hash,TRUE); |
| 495 | | | |
| 496 | | | if (node) |
Redundant Condition
node 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 node cannot be false.
- A crashing bug occurs on every path where node could have evaluated to false. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 497 | | | return node->id; |
| 498 | | | else |
| 499 | | | return 0; |
| 500 | | | } |
| |