hedgewars/uUtils.pas
changeset 10574 1636b0efa415
parent 10573 3b82b4d90eb7
child 10594 7a61f321f399
--- 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}