summaryrefslogtreecommitdiff
path: root/mkdep.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-05 21:27:43 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-05 21:28:44 -0800
commit877ca3bc8080cb36b51e1288a8d5dedae733cadd (patch)
treea08d3b13e3c89b7c4837c2187e86be0ca5e80e96 /mkdep.pl
parentbb2fa762b4a42f752a0b6d88ef553ec9357ea9b1 (diff)
downloadnasm-877ca3bc8080cb36b51e1288a8d5dedae733cadd.tar.gz
nasm-877ca3bc8080cb36b51e1288a8d5dedae733cadd.tar.bz2
nasm-877ca3bc8080cb36b51e1288a8d5dedae733cadd.zip
Fix "carryover" of exclude information from one file to another.
my %foo; doesn't mean %foo is initialized to empty, need my %foo = (); or my %foo = undef; or similar for that.
Diffstat (limited to 'mkdep.pl')
-rwxr-xr-xmkdep.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkdep.pl b/mkdep.pl
index 4195bc2..9245b18 100755
--- a/mkdep.pl
+++ b/mkdep.pl
@@ -118,7 +118,8 @@ sub insert_deps($) {
}
close(IN);
- my $e, %do_exclude;
+ my $e;
+ my %do_exclude = ();
foreach $e (@exclude) {
$do_exclude{$e} = 1;
}