return NULL if make_dir_hier fails
authorColin Leroy <colin@colino.net>
Wed, 6 Nov 2002 22:32:44 +0000 (22:32 +0000)
committerColin Leroy <colin@colino.net>
Wed, 6 Nov 2002 22:32:44 +0000 (22:32 +0000)
ChangeLog.claws
configure.in
src/mh.c

index 6639b45f0e818fee4634a44f1f71817dcc4d48ca..89f0754da2fddfe78ea16aed39a6b7e4d52e64fe 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-06 [colin]     0.8.5claws80
+
+       * src/mh.c
+               mh_create_folder() returns NULL if can't create
+               directory hierarchy
+
 2002-11-06 [paul]      0.8.5claws79
 
        * src/compose.[ch]
index fa0b79e6dfec33fb300c6e5d268979044ab7f1c9..70477baf019019c7d0727df59de92a6b55eb5bbe 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws79
+EXTRA_VERSION=claws80
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index f1fa3b37b3a1a930ce0f216b24dbb4abbcb32781..58d02d7a6f0067a43d8454cb0c80bd43ee87c234 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -914,9 +914,10 @@ FolderItem *mh_create_folder(Folder *folder, FolderItem *parent,
        g_return_val_if_fail(name != NULL, NULL);
 
        path = folder_item_get_path(parent);
-       if (!is_dir_exist(path))
-               make_dir_hier(path);
-
+       if (!is_dir_exist(path)) 
+               if (make_dir_hier(path) != 0)
+                       return NULL;
+               
        fullpath = g_strconcat(path, G_DIR_SEPARATOR_S, name, NULL);
        g_free(path);