Skip to content

Commit

Permalink
Fixed mutex misuse.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 20, 2012
1 parent f5923f5 commit 8d7cf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physfs.c
Expand Up @@ -860,7 +860,7 @@ static DirHandle *openDirectory(PHYSFS_Io *io, const char *d, int forWriting)
return retval;

io = __PHYSFS_createNativeIo(d, forWriting ? 'w' : 'r');
BAIL_IF_MACRO_MUTEX(io == NULL, NULL, stateLock, 0);
BAIL_IF_MACRO(!io, ERRPASS, 0);
} /* if */

ext = find_filename_extension(d);
Expand Down

0 comments on commit 8d7cf56

Please sign in to comment.