]> git.eshelyaron.com Git - emacs.git/commitdiff
lib-src/ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 3 Jul 2010 10:46:27 +0000 (12:46 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 3 Jul 2010 10:46:27 +0000 (12:46 +0200)
lib-src/ChangeLog
lib-src/ebrowse.c

index e8bb82f749c656f4939cc2f35346430c5b6178c1..939f3f219ece7e3e40b461d569a55deeb900a7e0 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-03  Juanma Barranquero  <lekktu@gmail.com>
+
+       * ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
+
 2010-07-03  Juanma Barranquero  <lekktu@gmail.com>
 
        Fix prototype warnings.
index bb3456f84e80b474346c9c340826b0efa1446cf4..37b48a3349a0d9de15a3e95587ea7e4c7f6d3dda 100644 (file)
@@ -2385,7 +2385,7 @@ match_qualified_namespace_alias (void)
         {
         case IDENT:
           tmp = (struct link *) xmalloc (sizeof *cur);
-          tmp->sym = find_namespace (yytext, cur->sym);
+          tmp->sym = find_namespace (yytext, cur ? cur->sym : NULL);
           tmp->next = NULL;
           if (head)
             {