]> granicus.if.org Git - openssl/commitdiff
objxref.pl: improve portability.
authorAndy Polyakov <appro@openssl.org>
Sun, 22 Apr 2012 21:18:30 +0000 (21:18 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 1 Feb 2014 21:17:36 +0000 (22:17 +0100)
(cherry picked from commit 71fa3bc5ece9121d1aa9bb513b5641e9ea605e14)

crypto/objects/objxref.pl

index 731d3ae22c2745928648f0602ba2732c292a9b7e..94b9bc133f684dd90b246c6cff12eea5bf6e3f15 100644 (file)
@@ -39,7 +39,8 @@ my @xrkeys = keys %xref_tbl;
 
 my @srt1 = sort { $oid_tbl{$a} <=> $oid_tbl{$b}} @xrkeys;
 
-for(my $i = 0; $i <= $#srt1; $i++)
+my $i;
+for($i = 0; $i <= $#srt1; $i++)
        {
        $xref_tbl{$srt1[$i]}[2] = $i;
        }