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:
parent
174da6fb3c
commit
d8715b0371
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue