archivers/hog.c
changeset 564 ce114ffdf485
parent 553 4338d9c0bbcd
child 591 f31600941752
equal deleted inserted replaced
563:b335449def59 564:ce114ffdf485
   319 static int hog_load_entries(const char *name, int forWriting, HOGinfo *info)
   319 static int hog_load_entries(const char *name, int forWriting, HOGinfo *info)
   320 {
   320 {
   321     void *fh = NULL;
   321     void *fh = NULL;
   322     PHYSFS_uint32 fileCount;
   322     PHYSFS_uint32 fileCount;
   323     HOGentry *entry;
   323     HOGentry *entry;
   324     char *ptr;
       
   325 
   324 
   326     BAIL_IF_MACRO(!hog_open(name, forWriting, &fh, &fileCount), NULL, 0);
   325     BAIL_IF_MACRO(!hog_open(name, forWriting, &fh, &fileCount), NULL, 0);
   327     info->entryCount = fileCount;
   326     info->entryCount = fileCount;
   328     info->entries = (HOGentry *) malloc(sizeof (HOGentry) * fileCount);
   327     info->entries = (HOGentry *) malloc(sizeof (HOGentry) * fileCount);
   329     if (info->entries == NULL)
   328     if (info->entries == NULL)