mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Convert malloc() uses to xmalloc().
Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
3c3ecaacda
commit
42107f8bba
2 changed files with 4 additions and 14 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue