Check for NULL pointer return.

Spotted by:	marcus
This commit is contained in:
phk 2005-05-24 10:10:38 +00:00
parent fc7ff9d08e
commit a549754d71

View File

@ -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);