]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a thinko in etags.c
authorEli Zaretskii <eliz@gnu.org>
Wed, 31 Aug 2016 16:57:59 +0000 (19:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 31 Aug 2016 16:57:59 +0000 (19:57 +0300)
* lib-src/etags.c (invalidate_nodes): Don't try to dereference
a null pointer.

lib-src/etags.c

index 95553e9c42a989dec0d162a7fe8f56007577c4c0..bf4a8f7015dcba1bbf915fe06cdc70530ac07508 100644 (file)
@@ -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);
            }