Selaa lähdekoodia

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).
Oswald Buddenhagen 4 vuotta sitten
vanhempi
sitoutus
ee39e684aa
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      src/config.c

+ 1 - 4
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 ))
 		{