From: Ben Laurie Date: Sun, 3 Mar 2013 02:56:45 +0000 (+0000) Subject: Take the first definition of a variable. X-Git-Tag: master-post-reformat~1406 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=7bbb8c5620c7a932988473533e2aca385e4b89c5;hp=d0aeeee176dabbecd993313f357e83b8286a6a56;ds=sidebyside Take the first definition of a variable. --- 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,") { 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; } }