r258 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat May 12 11:09:40 EDT 2007


Author: icculus
Date: 2007-05-12 11:09:40 -0400 (Sat, 12 May 2007)
New Revision: 258

Modified:
   trunk/fileio.c
Log:
Don't open file for write if we've already failed for some reason.


Modified: trunk/fileio.c
===================================================================
--- trunk/fileio.c	2007-05-12 14:52:12 UTC (rev 257)
+++ trunk/fileio.c	2007-05-12 15:09:40 UTC (rev 258)
@@ -111,8 +111,11 @@
     flen = in->length(in);
 
     STUBBED("fopen?");
+
     MojoPlatform_unlink(fname);
-    out = fopen(fname, "wb");
+    if (!iofailure)
+        out = fopen(fname, "wb");
+
     if (out != NULL)
     {
         while (!iofailure)




More information about the mojosetup-commits mailing list