Skip to content

Commit 42770fb

Browse files
committed
Bugfix: scripts/buildtable: Increment found marker *after* processing the header
1 parent 959fecc commit 42770fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/buildtable.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
} else {
116116
die "Bad line in $fn preamble";
117117
}
118-
++$found{$field};
119118
die "Extra spaces in $fn" if $val =~ /^\s/;
120119
if ($field eq 'BIP') {
121120
die "$fn claims to be BIP $val" if $val ne $bipnum;
@@ -163,6 +162,7 @@
163162
} elsif (not exists $MiscField{$field}) {
164163
die "Unknown field $field in $fn";
165164
}
165+
++$found{$field};
166166
}
167167
if (not $found{License}) {
168168
die "Missing License in $fn" unless exists $TolerateMissingLicense{$bipnum};

0 commit comments

Comments
 (0)