(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/stats_tree.c) |
| |
| 719 | | | stats_tree_create_pivot(stats_tree *st, const gchar *name, int parent_id) |
| 720 | | | { |
| 721 | | | stat_node *node = new_stat_node(st,name,parent_id,TRUE,TRUE); |
| 722 | | | |
| 723 | | | 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.
|
|
| 724 | | | return node->id; |
| 725 | | | else |
| 726 | | | return 0; |
| 727 | | | } |
| |