aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-xml.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-07-01 00:37:55 +0800
committerPeter Williams <peterw@src.gnome.org>2000-07-01 00:37:55 +0800
commitac6baa408e751313bdba2672d522b0ae7f38477d (patch)
treef47759dc0e8c9970d88b6f2a1eb44928d68e1131 /filter/filter-xml.c
parent767f92d2b8ed11176f0eb83e239c443c5536ee81 (diff)
downloadgsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar
gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar.gz
gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar.bz2
gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar.lz
gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar.xz
gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar.zst
gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.zip
Add some checks for bad/nonexistant XML docs.
svn path=/trunk/; revision=3828
Diffstat (limited to 'filter/filter-xml.c')
-rw-r--r--filter/filter-xml.c4
1 files changed, 4 insertions, 0 deletions
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);