If xmlParseFile returns NULL, then just return, rather than trying to

2005-07-14  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-xml.c (gnome_wp_xml_load_xml): If xmlParseFile returns
	NULL, then just return, rather than trying to parse the document

	Fixes #310041
This commit is contained in:
Rodney Dawes 2005-07-15 04:41:53 +00:00 committed by Rodney Dawes
parent 174da6fb3c
commit d8715b0371
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-07-14 Rodney Dawes <dobey@novell.com>
* gnome-wp-xml.c (gnome_wp_xml_load_xml): If xmlParseFile returns
NULL, then just return, rather than trying to parse the document
Fixes #310041
2005-07-13 Rodney Dawes <dobey@novell.com>
* gnome-wp-info.c (gnome_wp_info_new): Pass the md5sum to the call

View file

@ -106,6 +106,9 @@ static void gnome_wp_xml_load_xml (GnomeWPCapplet * capplet,
wplist = xmlParseFile (filename);
if (!wplist)
return;
root = xmlDocGetRootElement (wplist);
for (list = root->children; list != NULL; list = list->next) {