diff --git a/docs/CREDITS.txt b/docs/CREDITS.txt index 8bd75ee..dcb904c 100644 --- a/docs/CREDITS.txt +++ b/docs/CREDITS.txt @@ -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 ... diff --git a/src/physfs.c b/src/physfs.c index d3504ee..e3a9fe1 100644 --- a/src/physfs.c +++ b/src/physfs.c @@ -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);