summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/ebrowse.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 9bdf8a4fd49..863f53ce747 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -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
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 81dbf73455a..f49d3cdafda 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -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);