aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-local-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-local-folder.c')
-rw-r--r--shell/e-local-folder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/e-local-folder.c b/shell/e-local-folder.c
index 734246d28d..3da916f5fb 100644
--- a/shell/e-local-folder.c
+++ b/shell/e-local-folder.c
@@ -283,7 +283,7 @@ construct_loading_metadata (ELocalFolder *local_folder,
}
root = xmlDocGetRootElement (doc);
- if (root == NULL || strcmp (root->name, "efolder") != 0) {
+ if (root == NULL || root->name == NULL || strcmp (root->name, "efolder") != 0) {
g_free (metadata_path);
xmlFreeDoc (doc);
return FALSE;