Do not silently truncate files on perlasm errors
[oweals/openssl.git] / crypto / bn / asm / sparct4-mont.pl
index 90c7bb82e4af231fe437a3e28d5df85bda560c59..b3cf02a515595009782c08be7d89545fd08330fe 100755 (executable)
@@ -1,5 +1,5 @@
 #! /usr/bin/env perl
-# Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 2012-2018 The OpenSSL Project Authors. All Rights Reserved.
 #
 # Licensed under the OpenSSL license (the "License").  You may not use
 # this file except in compliance with the License.  You can obtain a copy
@@ -1225,4 +1225,4 @@ ___
 
 &emit_assembler();
 
-close STDOUT;
+close STDOUT or die "error closing STDOUT: $!";