emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4ec3127: Fix a thinko in etags.c


From: Eli Zaretskii
Subject: [Emacs-diffs] master 4ec3127: Fix a thinko in etags.c
Date: Wed, 31 Aug 2016 16:58:48 +0000 (UTC)

branch: master
commit 4ec31277e7603484fd7a4d2d8e3d0eefe62c587c
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix a thinko in etags.c
    
    * lib-src/etags.c (invalidate_nodes): Don't try to dereference
    a null pointer.
---
 lib-src/etags.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib-src/etags.c b/lib-src/etags.c
index 95553e9..bf4a8f7 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);
            }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]