Check for NULL pointer return.
Spotted by: marcus
This commit is contained in:
parent
fc7ff9d08e
commit
a549754d71
@ -368,6 +368,8 @@ geom_gettree(struct gmesh *gmp)
|
||||
int error;
|
||||
|
||||
p = geom_getxml();
|
||||
if (p == NULL)
|
||||
return (errno);
|
||||
error = geom_xml2tree(gmp, p);
|
||||
free(p);
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user