commit ee39e684aa12e912f222f10c7a97927dcb94f25d
parent 6463a72f127b951dab878e280834cdc34734d3d2
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Mon, 5 Oct 2020 12:31:14 +0200
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).
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/config.c b/src/config.c
@@ -463,9 +463,7 @@ load_config( const char *where )
chanlistapp = &chanlist->next;
*chanlistapp = NULL;
}
- while (getcline( &cfile )) {
- if (!cfile.cmd)
- goto reloop;
+ while (getcline( &cfile ) && cfile.cmd) {
if (!strcasecmp( "Channel", cfile.cmd ) ||
!strcasecmp( "Channels", cfile.cmd ))
{
@@ -479,7 +477,6 @@ load_config( const char *where )
cfile.err = 1;
}
}
- break;
}
else if (!strcasecmp( "FSync", cfile.cmd ))
{