diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-08-31 19:57:59 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-08-31 19:57:59 +0300 |
commit | 4ec31277e7603484fd7a4d2d8e3d0eefe62c587c (patch) | |
tree | 7190925629a292d8efea08da007814488ea143b1 | |
parent | 6d8144a2abb1c37982d82e32c68ab5115aca792c (diff) |
Fix a thinko in etags.c
* lib-src/etags.c (invalidate_nodes): Don't try to dereference
a null pointer.
-rw-r--r-- | lib-src/etags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 95553e9c42..bf4a8f7015 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -2242,7 +2242,7 @@ invalidate_nodes (fdesc *badfdp, node **npp) with a right child. */ do { np = pop_node (&stack); - if (np->fdp == badfdp) + if (np && np->fdp == badfdp) np->valid = false; } while (np && np->right == NULL); } |