POSIX version of __PHYSFS_platformStat() forgot to set *exists properly.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 22 Jun 2011 15:56:10 -0400
changeset 1167 9d84f8652839
parent 1163 e46c11bb2780
child 1168 0c871576e3ec
POSIX version of __PHYSFS_platformStat() forgot to set *exists properly. Thanks to Frank Becker for the fix.
src/platform_posix.c
--- a/src/platform_posix.c	Wed Jun 01 03:10:08 2011 -0400
+++ b/src/platform_posix.c	Wed Jun 22 15:56:10 2011 -0400
@@ -404,6 +404,8 @@
         BAIL_MACRO(strerror(errno), 0);
     } /* if */
 
+    *exists = 1;
+
     if (S_ISREG(statbuf.st_mode))
     {
         st->filetype = PHYSFS_FILETYPE_REGULAR;