# HG changeset patch
# User sheepluva
# Date 1417278831 -3600
# Node ID 1636b0efa4152a677eff2a4bfe24261d8c30b6b3
# Parent  3b82b4d90eb7a0fb0328cf07bd7510c821a24930
oops. no need to (re)open stderr I guess

diff -r 3b82b4d90eb7 -r 1636b0efa415 hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Sat Nov 29 15:38:28 2014 +0100
+++ b/hedgewars/uUtils.pas	Sat Nov 29 17:33:51 2014 +0100
@@ -558,11 +558,9 @@
         end;
 
 {$IFNDEF PAS2C}
+    // if everything fails, write to stderr
     if (length(UserPathPrefix) = 0) or (IOResult = 0) then
-        begin
-        logFile:= stderr; // if everything fails, write to stderr
-        Rewrite(logFile);
-        end;
+        logFile:= stderr;
 {$ENDIF}
 {$I+}
 {$ENDIF}