diff options
author | Rob Landley <rob@landley.net> | 2014-09-22 07:52:15 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-09-22 07:52:15 -0500 |
commit | 29d30be31123129deac142c6208faa7a1a98b2d0 (patch) | |
tree | bc4074bef093643c71b78910fd1e5410970e4192 /toys | |
parent | c611c39db47324b9fa6e5cd0f602b3aa3f957ffe (diff) | |
download | toybox-29d30be31123129deac142c6208faa7a1a98b2d0.tar.gz |
Respond to two static analysis issues in dirtree_path() reported by Ashwini Sharma.
dirtree->name is an array, not a pointer, so can't be zero. Remove the test.
We dereference plen without checking it for null but calling dirtree_path(0, 0)
is pilot error: only the _first_ call can have plen = 0. Add a comment.
Diffstat (limited to 'toys')
0 files changed, 0 insertions, 0 deletions