Browse Source

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).
1.4
Oswald Buddenhagen 4 years ago
parent
commit
ee39e684aa
  1. 5
      src/config.c

5
src/config.c

@ -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 ))
{ {

Loading…
Cancel
Save