Convert malloc() uses to xmalloc().

Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
Scott Wood 2008-01-07 14:27:36 -06:00 committed by Jon Loeliger
parent 3c3ecaacda
commit 42107f8bba
2 changed files with 4 additions and 14 deletions

View file

@ -273,11 +273,7 @@ int push_input_file(const char *filename)
exit(1);
}
incl_file = malloc(sizeof(struct incl_file));
if (!incl_file) {
yyerror("Can not allocate include file space.");
return 0;
}
incl_file = xmalloc(sizeof(struct incl_file));
/*
* Save current context.