Prevent crash if logbook "global" is accessed and a logbook "global" is defined accidentally in config file

SVN revision: 1747
This commit is contained in:
Stefan Ritt 2006-11-08 14:04:30 +00:00
parent 8a6096353a
commit e93b0091cf

View File

@ -24555,7 +24555,7 @@ void server_loop(void)
goto finished; goto finished;
} else { } else {
if (!strieq(logbook, str) && logbook[0]) { if (logbook[0] && (!strieq(logbook, str) || strieq(logbook, "global"))) {
/* check for top group */ /* check for top group */
sprintf(str, "Top group %s", logbook); sprintf(str, "Top group %s", logbook);