소스 검색

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 년 전
부모
커밋
ee39e684aa
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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 ))
 		{