Skip to content

Commit

Permalink
Fixed some syntax issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 9, 2001
1 parent f2bb780 commit 7ab013b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archivers/dir.c
Expand Up @@ -195,13 +195,13 @@ static DirHandle *DIR_openArchive(const char *name, int forWriting)
BAIL_IF_MACRO(!DIR_isArchive(name, forWriting),
ERR_UNSUPPORTED_ARCHIVE, NULL);

retval = malloc(sizeof (DirHandle));
retval = (DirHandle *) malloc(sizeof (DirHandle));
BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
retval->opaque = malloc(namelen + seplen + 1);
if (retval->opaque == NULL)
{
free(retval);
BAIL_IF_MACRO(1, ERR_OUT_OF_MEMORY, NULL);
BAIL_MACRO(ERR_OUT_OF_MEMORY, NULL);
} /* if */

/* make sure there's a dir separator at the end of the string */
Expand Down

0 comments on commit 7ab013b

Please sign in to comment.