(mail_mbox_close): mbox can be NULL (e.g. --exec=quit was given)
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -37,6 +37,9 @@ mail_mbox_close () | ... | @@ -37,6 +37,9 @@ mail_mbox_close () |
37 | mu_url_t url = NULL; | 37 | mu_url_t url = NULL; |
38 | size_t held_count; | 38 | size_t held_count; |
39 | 39 | ||
40 | if (!mbox) | ||
41 | return 0; | ||
42 | |||
40 | if (util_getenv (NULL, "readonly", Mail_env_boolean, 0)) | 43 | if (util_getenv (NULL, "readonly", Mail_env_boolean, 0)) |
41 | { | 44 | { |
42 | if (mail_mbox_commit ()) | 45 | if (mail_mbox_commit ()) | ... | ... |
-
Please register or sign in to post a comment