platform/posix.c
changeset 292 99bf6ef5639a
parent 259 bd65a0d74e9a
child 310 f8bca4a93fd5
--- a/platform/posix.c	Sun Jun 23 06:12:06 2002 +0000
+++ b/platform/posix.c	Sun Jun 23 09:17:59 2002 +0000
@@ -362,8 +362,7 @@
     errno = 0;
 
     fd = open(filename, mode, S_IRUSR | S_IWUSR);
-    if (fd < 0)
-        __PHYSFS_setError(strerror(errno));
+    BAIL_IF_MACRO(fd < 0, strerror(errno), NULL);
 
     retval = (int *) malloc(sizeof (int));
     if (retval == NULL)