commit ee39e684aa12e912f222f10c7a97927dcb94f25d
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Mon Oct 5 12:31:14 2020 +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).

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


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to