make exit from parsing Group sections less convoluted

this is a de-optimization, but it makes the code consistent with the
other sections (which do not use the shortcut due to having to
post-process the data or being encapsulated by a function call).
This commit is contained in:
Oswald Buddenhagen 2020-10-05 12:31:14 +02:00
parent 6463a72f12
commit ee39e684aa

View File

@ -463,9 +463,7 @@ load_config( const char *where )
chanlistapp = &chanlist->next; chanlistapp = &chanlist->next;
*chanlistapp = NULL; *chanlistapp = NULL;
} }
while (getcline( &cfile )) { while (getcline( &cfile ) && cfile.cmd) {
if (!cfile.cmd)
goto reloop;
if (!strcasecmp( "Channel", cfile.cmd ) || if (!strcasecmp( "Channel", cfile.cmd ) ||
!strcasecmp( "Channels", cfile.cmd )) !strcasecmp( "Channels", cfile.cmd ))
{ {
@ -479,7 +477,6 @@ load_config( const char *where )
cfile.err = 1; cfile.err = 1;
} }
} }
break;
} }
else if (!strcasecmp( "FSync", cfile.cmd )) else if (!strcasecmp( "FSync", cfile.cmd ))
{ {