aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-06-11 16:28:41 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-06-11 16:28:41 +0800
commitad811c27003b8e8ea0dbdba3cef61823a2497f26 (patch)
tree9ef4ee614a7662616d8da173edc98d5118968322 /camel/providers
parent0bbd48e965cd8af7b15204f3d800aaf1440fe101 (diff)
downloadgsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.gz
gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.tar.zst
gsoc2013-evolution-ad811c27003b8e8ea0dbdba3cef61823a2497f26.zip
if we scan from "" or top == NULL, then we really want to scan from "."
2004-06-11 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c (get_folder_info): if we scan from "" or top == NULL, then we really want to scan from "." instead. * camel-url.c (camel_url_new_with_base): don't check the for a character after the # before extracting the fragment. An empty fragment is still allowed and # should never be added to the path. See Rfc1808 2.4.1. svn path=/trunk/; revision=26304
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/local/camel-maildir-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c
index 5a81965ede..92375b99bc 100644
--- a/camel/providers/local/camel-maildir-store.c
+++ b/camel/providers/local/camel-maildir-store.c
@@ -420,7 +420,7 @@ get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelExcepti
url = camel_url_new("maildir:", NULL);
camel_url_set_path(url, ((CamelService *)local_store)->url->path);
- if (scan_dir(store, visited, url, top?top:".", flags, NULL, &fi, ex) == -1 && fi != NULL) {
+ if (scan_dir(store, visited, url, top == NULL || top[0] == 0?".":top, flags, NULL, &fi, ex) == -1 && fi != NULL) {
camel_store_free_folder_info_full(store, fi);
fi = NULL;
}