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 e8bb82f..939f3f2 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 bb3456f..37b48a3 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)
             {