aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2002-04-21 12:49:36 +0000
committerGerd Moellmann <[email protected]>2002-04-21 12:49:36 +0000
commitc901ceff748dfe7ea78e66035191e47b1fd89ab5 (patch)
tree19d9a873eeb3a3d14dbfa1ee65128d6057c56a4a
parent758bf24f7637662790cb7e60b98242a0d5d55485 (diff)
(add_declarator): Test *CLS instead of CLS.
-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 9bdf8a4fd4..863f53ce74 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
+2002-04-21 Gerd Moellmann <[email protected]>
+
+ * ebrowse.c (add_declarator): Test *CLS instead of CLS.
+
2002-04-16 Eli Zaretskii <[email protected]>
* 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 81dbf73455..f49d3cdafd 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);