aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index a663022298..d0e34e9e83 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -833,7 +833,7 @@ emft_drop_folder_rec (CamelStore *store, CamelFolderInfo *fi, const char *parent
break;
/* handles dropping to the root properly */
- if (parent_name[0])
+ if (parent_name && parent_name[0])
new_name = g_strdup_printf ("%s/%s", parent_name, src->name);
else
new_name = g_strdup (src->name);