...
Code Block | ||
---|---|---|
| ||
int *p1 = foo(); int *p2 = NULL; bar(); /* Removable if bar() does not produce any side-effects */ if (baz()) { return p1; } else { p2 = p1; } return p2; /* Removable if bar() does not produce any side-effects */ return p1; |
Risk Assessment
Unused values may indicate significant logic errors, possibly resulting in a denial of service condition.
...