From c901ceff748dfe7ea78e66035191e47b1fd89ab5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 21 Apr 2002 12:49:36 +0000 Subject: [PATCH] (add_declarator): Test *CLS instead of CLS. --- lib-src/ChangeLog | 4 ++++ lib-src/ebrowse.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * ebrowse.c (add_declarator): Test *CLS instead of CLS. + 2002-04-16 Eli Zaretskii * 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); -- 2.39.2