From 98f292d192c5ec5a790025a3ab502b35e074e606 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 19 Aug 2011 22:13:07 +0200 Subject: [PATCH] fix crash --- misc/tools/weapon-profiler-analyzer.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/tools/weapon-profiler-analyzer.pl b/misc/tools/weapon-profiler-analyzer.pl index f168983b..95d7eb1f 100755 --- a/misc/tools/weapon-profiler-analyzer.pl +++ b/misc/tools/weapon-profiler-analyzer.pl @@ -318,7 +318,8 @@ sub out_html_cache($@) { # close out file select STDOUT; - close $out_html_cache_fh; + close $out_html_cache_fh + if defined $out_html_cache_fh; undef $out_html_cache_fh; } } -- 2.39.2