Check for NULL return

SVN revision: 50818
This commit is contained in:
Sebastian Dransfeld 2010-08-04 18:21:30 +00:00
parent 7b5e166c85
commit a737a1d044
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ efreet_xml_new(const char *file)
error = 0;
xml = efreet_xml_parse(&data, &size);
if (error) goto efreet_error;
if (!xml || error) goto efreet_error;
munmap(data, size);
close(fd);