diff options
Diffstat (limited to 'e-util/e-plugin.c')
-rw-r--r-- | e-util/e-plugin.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c index 08fc304699..0524fcc81f 100644 --- a/e-util/e-plugin.c +++ b/e-util/e-plugin.c @@ -219,8 +219,11 @@ ep_load(const char *filename) } root = xmlDocGetRootElement(doc); - if (strcmp(root->name, "e-plugin-list") != 0) - goto fail; + if (strcmp(root->name, "e-plugin-list") != 0) { + g_warning("No <e-plugin-list> root element: %s", filename); + xmlFreedoc(doc); + return -1; + } pdoc = g_malloc0(sizeof(*pdoc)); pdoc->doc = doc; |