Skip to content
Permalink
Browse files
Fixed some syntax issues.
  • Loading branch information
icculus committed Oct 9, 2001
1 parent f2bb780 commit 7ab013b8b727a52b67c3a20b3f90478072af50ca
Showing with 2 additions and 2 deletions.
  1. +2 −2 archivers/dir.c
@@ -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 */

0 comments on commit 7ab013b

Please sign in to comment.