Treat parent_name == NULL and parent_name == "" the same.
authorJeffrey Stedfast <fejj@ximian.com>
Wed, 3 Dec 2003 17:19:51 +0000 (17:19 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Wed, 3 Dec 2003 17:19:51 +0000 (17:19 +0000)
2003-12-03  Jeffrey Stedfast  <fejj@ximian.com>

* providers/local/camel-mbox-store.c (create_folder): Treat
parent_name == NULL and parent_name == "" the same.

camel/ChangeLog
camel/providers/local/camel-mbox-store.c

index 4e77a36..0ec8c88 100644 (file)
@@ -1,5 +1,8 @@
 2003-12-03  Jeffrey Stedfast  <fejj@ximian.com>
 
+       * providers/local/camel-mbox-store.c (create_folder): Treat
+       parent_name == NULL and parent_name == "" the same.
+
        * camel-store.c (camel_store_get_folder_info): Only add
        vTrash/vJunk info's if we've requested the toplevel folder tree,
        otherwise we get vTrash/vJunk folders in odd places in the folder
index 560ac93..359036f 100644 (file)
@@ -312,7 +312,7 @@ create_folder (CamelStore *store, const char *parent_name, const char *folder_na
                return NULL;
        }
        
-       if (parent_name)
+       if (parent_name && *parent_name)
                name = g_strdup_printf ("%s/%s", parent_name, folder_name);
        else
                name = g_strdup (folder_name);