From e93b0091cfd207f8a2488e15df228b628649c44e Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 8 Nov 2006 14:04:30 +0000 Subject: [PATCH] Prevent crash if logbook "global" is accessed and a logbook "global" is defined accidentally in config file SVN revision: 1747 --- src/elogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index ed91a917..e829c6f2 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -24555,7 +24555,7 @@ void server_loop(void) goto finished; } else { - if (!strieq(logbook, str) && logbook[0]) { + if (logbook[0] && (!strieq(logbook, str) || strieq(logbook, "global"))) { /* check for top group */ sprintf(str, "Top group %s", logbook);