diff options
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r-- | mail/em-folder-selector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index 64f0b05da8..2d7c528df5 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -315,8 +315,8 @@ em_folder_selector_get_selected_uri (EMFolderSelector *emfs) camel_url_set_fragment (url, newpath); } else { - newpath = g_strdup_printf ("%s/%s", url->path ? url->path : "", name); - camel_url_set_path (url, newpath); + newpath = g_strdup_printf("%s/%s", (url->path == NULL || strcmp(url->path, "/") == 0) ? "":url->path, name); + camel_url_set_path(url, newpath); } g_free (emfs->selected_path); |