Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
POSIX version of __PHYSFS_platformStat() forgot to set *exists properly.
Thanks to Frank Becker for the fix.
  • Loading branch information
icculus committed Jun 22, 2011
1 parent 6a1aca5 commit b8c4942
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform_posix.c
Expand Up @@ -404,6 +404,8 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st)
BAIL_MACRO(strerror(errno), 0);
} /* if */

*exists = 1;

if (S_ISREG(statbuf.st_mode))
{
st->filetype = PHYSFS_FILETYPE_REGULAR;
Expand Down

0 comments on commit b8c4942

Please sign in to comment.