From ee39e684aa12e912f222f10c7a97927dcb94f25d Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 5 Oct 2020 12:31:14 +0200 Subject: [PATCH] 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). --- src/config.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config.c b/src/config.c index 7a3877b..0f6ecba 100644 --- 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 )) {