archivers/hog.c
changeset 678 73a2641375a0
parent 671 d761900016b4
child 691 71d9affe0d8a
--- a/archivers/hog.c	Sun Mar 13 03:18:18 2005 +0000
+++ b/archivers/hog.c	Sun Mar 13 03:33:11 2005 +0000
@@ -309,11 +309,7 @@
     BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, 0);
     memset(info, '\0', sizeof (HOGinfo));
     info->filename = (char *) malloc(strlen(name) + 1);
-    if (info->filename == NULL)
-    {
-        __PHYSFS_setError(ERR_OUT_OF_MEMORY);
-        goto HOG_openArchive_failed;
-    } /* if */
+    GOTO_IF_MACRO(!info->filename, ERR_OUT_OF_MEMORY, HOG_openArchive_failed);
 
     if (!hog_load_entries(name, forWriting, info))
         goto HOG_openArchive_failed;