changeset 3962:e4692c34dc13

config.pl: fixed use of %end to terminate %section
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Mon, 11 Jun 2018 17:31:58 +0200
parents 0fbb904b6f08
children c75589ea56bd
files scripts/config.pl
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/config.pl	Wed Jun 13 10:32:32 2018 +0200
+++ b/scripts/config.pl	Mon Jun 11 17:31:58 2018 +0200
@@ -2003,12 +2003,13 @@
 		    $line = "%common";
 		} else {
 		    error( "$file:$lnum: unbalanced %end.");
+                    next;
 		}
 	    } else {
 		shift @ignore;
 		shift @cur_sections;
+                next;
 	    }
-	    next;
 	}
 
 	if ($line =~ /^\s* %common\b/x) {