]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fix crash
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 19 Aug 2011 20:13:07 +0000 (22:13 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 19 Aug 2011 20:13:07 +0000 (22:13 +0200)
misc/tools/weapon-profiler-analyzer.pl

index f168983bee98641ddc7874c1f34ed0f09a397a10..95d7eb1f772c33092bb3d10fe9829c15a6364a87 100755 (executable)
@@ -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;
        }
 }