aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii2016-08-31 19:57:59 +0300
committerEli Zaretskii2016-08-31 19:57:59 +0300
commit4ec31277e7603484fd7a4d2d8e3d0eefe62c587c (patch)
tree7190925629a292d8efea08da007814488ea143b1 /lib-src
parent6d8144a2abb1c37982d82e32c68ab5115aca792c (diff)
downloademacs-4ec31277e7603484fd7a4d2d8e3d0eefe62c587c.tar.gz
emacs-4ec31277e7603484fd7a4d2d8e3d0eefe62c587c.zip
Fix a thinko in etags.c
* lib-src/etags.c (invalidate_nodes): Don't try to dereference a null pointer.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 95553e9c42a..bf4a8f7015d 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -2242,7 +2242,7 @@ invalidate_nodes (fdesc *badfdp, node **npp)
2242 with a right child. */ 2242 with a right child. */
2243 do { 2243 do {
2244 np = pop_node (&stack); 2244 np = pop_node (&stack);
2245 if (np->fdp == badfdp) 2245 if (np && np->fdp == badfdp)
2246 np->valid = false; 2246 np->valid = false;
2247 } while (np && np->right == NULL); 2247 } while (np && np->right == NULL);
2248 } 2248 }