]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/x86cpuid.pl
Fix error reporting glitch in X509_STORE_CTX_print_verify_cb() in t_x509.c
[thirdparty/openssl.git] / crypto / x86cpuid.pl
index f15d55723b8213f49c79fdd27f3e3c2cb13582ea..484bbdd7ef04b3b962a73bbccdce0a2898fc9d4d 100644 (file)
@@ -10,9 +10,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 push(@INC, "${dir}perlasm", "perlasm");
 require "x86asm.pl";
 
-$output = pop;
-open OUT,">$output";
-*STDOUT=*OUT;
+$output = pop and open STDOUT,">$output";
 
 &asm_init($ARGV[0]);
 
@@ -506,4 +504,4 @@ my $rdop = shift;
 
 &asm_finish();
 
-close STDOUT;
+close STDOUT or die "error closing STDOUT: $!";