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 18a2867036a0b61f89515803e5a954a90f3c6173..331529ae592ea3a41a0053aaf3027f2c2a65aebf 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<<___;