Use default value for $dir if it is empty.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 25 Feb 2008 13:14:06 +0000 (13:14 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 25 Feb 2008 13:14:06 +0000 (13:14 +0000)
crypto/x86_64cpuid.pl

index 18a2867..331529a 100644 (file)
@@ -100,6 +100,7 @@ OPENSSL_wipe_cpu:
 ___
 
 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+$dir = "." if $dir eq "";
 open STDOUT,"| $^X $dir/perlasm/x86_64-xlate.pl $output";
 
 print<<___;