diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-25 14:49:52 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-25 14:49:52 +0100 |
commit | b0f6ab7ff26c1152ee4894a86f69b183cfabe94f (patch) | |
tree | 379eab9d6e618db114b67319aafd04339c6f0aed /licenses/xxhash.txt | |
parent | 62a3a2e1ab14ca97a91376a6cc99be63c05db480 (diff) |
libfstree: add an assertion that root is not NULL
If the path argument is "", we assume that referes to root and set
the *existing* target node to the root node and skip ahead across
the tree search. This leaves "name" uninitialized, which makes
coverity panic, because fs->root could be NULL, going down the wrong
path.
Obviously, this should never, *ever* happen and there is no reasonable
recovery strategy if it suddenly does, so simply add an assertion.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'licenses/xxhash.txt')
0 files changed, 0 insertions, 0 deletions