1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-30 10:09:03 +00:00

Address a few code analysis warnings: uninitialized vars and undefined behavior

This commit is contained in:
dmiller
2021-08-06 16:17:46 +00:00
parent ccfdc64a2c
commit 2181443b63
4 changed files with 5 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ static void trie_free(struct trie_node *curr)
/* Since we descend only down one side, we at most accumulate one tree's-depth, or 128.
* Add 4 for safety to account for special root node and special empty stack position 0.
*/
struct trie_node *stack[128+4];
struct trie_node *stack[128+4] = {NULL};
int i = 1;
while (i > 0 && curr != NULL && curr != TRIE_NODE_TRUE) {