Skip to content

Commit

Permalink
Fixed cut-and-paste error in malloc() failure test (thanks, Tolga!).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 4, 2010
1 parent f871802 commit 4d567a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/CREDITS.txt
Expand Up @@ -115,6 +115,9 @@ ISO9660 archiver:
Bug fixes:
Steven Fuller

Bug fixes:
Tolga Dalman

Other stuff:
Your name here! Patches go to icculus@icculus.org ...

Expand Down
2 changes: 1 addition & 1 deletion src/physfs.c
Expand Up @@ -234,7 +234,7 @@ PHYSFS_Io *__PHYSFS_createNativeIo(const char *path, const int mode)
info = (NativeIoInfo *) allocator.Malloc(sizeof (NativeIoInfo));
GOTO_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);
pathdup = (char *) allocator.Malloc(strlen(path) + 1);
GOTO_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);
GOTO_IF_MACRO(pathdup == NULL, ERR_OUT_OF_MEMORY, createNativeIo_failed);

if (mode == 'r')
handle = __PHYSFS_platformOpenRead(path);
Expand Down

0 comments on commit 4d567a0

Please sign in to comment.