diff options
author | Ben Laurie <ben@links.org> | 2013-03-03 03:56:45 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2013-03-04 15:31:18 +0100 |
commit | 7bbb8c5620c7a932988473533e2aca385e4b89c5 (patch) | |
tree | 9e185b7f59ce6ae94f847e4a38761aa49685fe92 /util | |
parent | Use "copy" instead of "auto". (diff) | |
download | openssl-7bbb8c5620c7a932988473533e2aca385e4b89c5.tar.xz openssl-7bbb8c5620c7a932988473533e2aca385e4b89c5.zip |
Take the first definition of a variable.
Diffstat (limited to 'util')
-rwxr-xr-x | util/mk1mf.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index bb528f0c4b..e19816f4f7 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -69,7 +69,7 @@ open(IN,"<Makefile") || die "unable to open Makefile!\n"; while(<IN>) { my ($mf_opt, $mf_ref); while (($mf_opt, $mf_ref) = each %mf_import) { - if (/^$mf_opt\s*=\s*(.*)$/) { + if (/^$mf_opt\s*=\s*(.*)$/ && !defined($$mfref)) { $$mf_ref = $1; } } |