Check for NULL pointer return.

Spotted by:	marcus
This commit is contained in:
Poul-Henning Kamp 2005-05-24 10:10:38 +00:00
parent 940c638f93
commit 90d93f7141
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146561

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