diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-07-27 03:25:02 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-07-27 03:25:02 +0800 |
commit | 6fb402b631a1823fbc143a8ef6317cfec0eb0e67 (patch) | |
tree | 7e4145bdf3dc6eb476cc84f86e5c431ec2d804b5 /camel/providers/local/camel-maildir-store.c | |
parent | 641d49b55bf78c9c7d6c32d08e9cc7b0e0f5a399 (diff) | |
download | gsoc2013-evolution-6fb402b631a1823fbc143a8ef6317cfec0eb0e67.tar.gz gsoc2013-evolution-6fb402b631a1823fbc143a8ef6317cfec0eb0e67.tar.zst gsoc2013-evolution-6fb402b631a1823fbc143a8ef6317cfec0eb0e67.zip |
If the path exists and is a directory, return non-NULL. Missed this before
2002-07-26 Jeffrey Stedfast <fejj@ximian.com>
* providers/local/camel-local-store.c (get_folder): If the path
exists and is a directory, return non-NULL. Missed this before
which is how we could return NULL even on success. Oops.
svn path=/trunk/; revision=17618
Diffstat (limited to 'camel/providers/local/camel-maildir-store.c')
-rw-r--r-- | camel/providers/local/camel-maildir-store.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c index caae276e14..53d554d16a 100644 --- a/camel/providers/local/camel-maildir-store.c +++ b/camel/providers/local/camel-maildir-store.c @@ -85,14 +85,14 @@ CamelType camel_maildir_store_get_type(void) return camel_maildir_store_type; } -static CamelFolder *get_folder(CamelStore * store, const char *folder_name, guint32 flags, CamelException * ex) +static CamelFolder * +get_folder(CamelStore * store, const char *folder_name, guint32 flags, CamelException * ex) { char *name, *tmp, *cur, *new; struct stat st; CamelFolder *folder = NULL; - (void) ((CamelStoreClass *)parent_class)->get_folder(store, folder_name, flags, ex); - if (camel_exception_is_set(ex)) + if (!((CamelStoreClass *)parent_class)->get_folder(store, folder_name, flags, ex)) return NULL; name = g_strdup_printf("%s%s", CAMEL_LOCAL_STORE(store)->toplevel_dir, folder_name); |