commit | 785b2ad3dd79ee7a3ab47122f2f3adc855739dc4 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Oct 15 09:37:15 2015 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Oct 15 09:37:15 2015 +0200 |
tree | b849f6b2af98bb80f5d7d3b4d9da7a7e77b1507e | |
parent | d80e6c7ae31c4843f6dddb5c0470e330be4181dd [diff] [blame] |
data tree BUGFIX NULL dereference The case shouldn't ever happen, but coverity complained.
diff --git a/src/tree_data.c b/src/tree_data.c index eb1971e..110f535 100644 --- a/src/tree_data.c +++ b/src/tree_data.c
@@ -861,6 +861,9 @@ if (elem->parent == node->parent) { break; } + if (!parent) { + LOGINT; + } parent = parent->parent; /* parent is already processed, go to its sibling */ next = elem->next;