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).
This commit is contained in:
		
							parent
							
								
									6463a72f12
								
							
						
					
					
						commit
						ee39e684aa
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -463,9 +463,7 @@ load_config( const char *where ) | ||||||
| 				chanlistapp = &chanlist->next; | 				chanlistapp = &chanlist->next; | ||||||
| 				*chanlistapp = NULL; | 				*chanlistapp = NULL; | ||||||
| 			} | 			} | ||||||
| 			while (getcline( &cfile )) { | 			while (getcline( &cfile ) && cfile.cmd) { | ||||||
| 				if (!cfile.cmd) |  | ||||||
| 					goto reloop; |  | ||||||
| 				if (!strcasecmp( "Channel", cfile.cmd ) || | 				if (!strcasecmp( "Channel", cfile.cmd ) || | ||||||
| 				    !strcasecmp( "Channels", cfile.cmd )) | 				    !strcasecmp( "Channels", cfile.cmd )) | ||||||
| 				{ | 				{ | ||||||
|  | @ -479,7 +477,6 @@ load_config( const char *where ) | ||||||
| 					cfile.err = 1; | 					cfile.err = 1; | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 			break; |  | ||||||
| 		} | 		} | ||||||
| 		else if (!strcasecmp( "FSync", cfile.cmd )) | 		else if (!strcasecmp( "FSync", cfile.cmd )) | ||||||
| 		{ | 		{ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue