Don't cast calls to malloc().

This commit is contained in:
Anthony J. Bentley
2014-09-26 00:39:29 -06:00
parent 0d07caba60
commit 3e4350afa4
7 changed files with 18 additions and 40 deletions

View File

@@ -66,8 +66,7 @@ pushcontext(void)
while (*ppFileStack)
ppFileStack = &((*ppFileStack)->pNext);
if ((*ppFileStack =
(struct sContext *) malloc(sizeof(struct sContext))) != NULL) {
if ((*ppFileStack = malloc(sizeof(struct sContext))) != NULL) {
(*ppFileStack)->FlexHandle = CurrentFlexHandle;
(*ppFileStack)->pNext = NULL;
strcpy((char *) (*ppFileStack)->tzFileName,