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:
2006-11-08 14:04:30 +00:00
parent 8a6096353a
commit e93b0091cf
+1 -1
View File
@@ -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);