(add_declarator): Test *CLS instead of CLS.
authorGerd Moellmann <gerd@gnu.org>
Sun, 21 Apr 2002 12:49:36 +0000 (12:49 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sun, 21 Apr 2002 12:49:36 +0000 (12:49 +0000)
lib-src/ChangeLog
lib-src/ebrowse.c

index 9bdf8a4..863f53c 100644 (file)
@@ -1,3 +1,7 @@
+2002-04-21  Gerd Moellmann  <gerd@gnu.org>
+
+       * ebrowse.c (add_declarator): Test *CLS instead of CLS.
+
 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * update-game-score.c: Move config.h before the other headers, to
index 81dbf73..f49d3cd 100644 (file)
@@ -3250,7 +3250,7 @@ add_declarator (cls, id, flags, sc)
           char *regexp = matching_regexp ();
           int pos = BUFFER_POS ();
 
-          if (cls)
+          if (*cls)
            add_member_defn (*cls, *id, regexp, pos, 0, 1, SC_UNKNOWN, flags);
           else
             add_global_defn (*id, regexp, pos, 0, 1, sc, flags);