From: Rudolf Polzer Date: Fri, 19 Aug 2011 20:13:07 +0000 (+0200) Subject: fix crash X-Git-Tag: xonotic-v0.5.0~31 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98f292d192c5ec5a790025a3ab502b35e074e606;p=xonotic%2Fxonotic.git fix crash --- 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; } }