diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-07-01 00:37:55 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-07-01 00:37:55 +0800 |
commit | ac6baa408e751313bdba2672d522b0ae7f38477d (patch) | |
tree | f47759dc0e8c9970d88b6f2a1eb44928d68e1131 /filter/filter-xml.c | |
parent | 767f92d2b8ed11176f0eb83e239c443c5536ee81 (diff) | |
download | gsoc2013-evolution-ac6baa408e751313bdba2672d522b0ae7f38477d.tar.gz 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.c | 4 |
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); |