Forgotten to commit yesterday
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -52,7 +52,16 @@ mailbox_folder_create (mu_mailbox_t mbox, const char *name, | ... | @@ -52,7 +52,16 @@ mailbox_folder_create (mu_mailbox_t mbox, const char *name, |
52 | char *fname; | 52 | char *fname; |
53 | 53 | ||
54 | if ((rc = mu_url_aget_path (mbox->url, &fname))) | 54 | if ((rc = mu_url_aget_path (mbox->url, &fname))) |
55 | { | ||
56 | if (rc == MU_ERR_NOENT) | ||
57 | { | ||
58 | fname = strdup (mu_url_to_string (mbox->url)); | ||
59 | if (!fname) | ||
60 | return ENOMEM; | ||
61 | } | ||
62 | else | ||
55 | return rc; | 63 | return rc; |
64 | } | ||
56 | 65 | ||
57 | if (mu_url_is_scheme (mbox->url, "file") | 66 | if (mu_url_is_scheme (mbox->url, "file") |
58 | || mu_url_is_scheme (mbox->url, "mbox") | 67 | || mu_url_is_scheme (mbox->url, "mbox") | ... | ... |
-
Please register or sign in to post a comment