archivers/wad.c
changeset 678 73a2641375a0
parent 658 1981818c6170
child 691 71d9affe0d8a
--- a/archivers/wad.c	Sun Mar 13 03:18:18 2005 +0000
+++ b/archivers/wad.c	Sun Mar 13 03:33:11 2005 +0000
@@ -298,11 +298,7 @@
     memset(info, '\0', sizeof (WADinfo));
 
     info->filename = (char *) malloc(strlen(name) + 1);
-    if (info->filename == NULL)
-    {
-        __PHYSFS_setError(ERR_OUT_OF_MEMORY);
-        goto WAD_openArchive_failed;
-    } /* if */
+    GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, WAD_openArchive_failed);
 
     if (!wad_load_entries(name, forWriting, info))
         goto WAD_openArchive_failed;