From ac6baa408e751313bdba2672d522b0ae7f38477d Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 30 Jun 2000 16:37:55 +0000 Subject: Add some checks for bad/nonexistant XML docs. svn path=/trunk/; revision=3828 --- filter/filter-xml.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filter/filter-xml.c') diff --git a/filter/filter-xml.c b/filter/filter-xml.c index dc8271ae7e..ca95112127 100644 --- a/filter/filter-xml.c +++ b/filter/filter-xml.c @@ -555,6 +555,10 @@ GList *filter_load_optionset_file(const char *name, GList *rules) GList *options; doc = xmlParseFile(name); + if( doc == NULL ) { + g_warning( "Couldn't load option file %s!", name ); + return NULL; + } options = filter_load_optionset(doc, rules); xmlFreeDoc(doc); -- cgit