Commit b1232b2f b1232b2f33c6942e63f601620852b5a7ded29b5c by Sergey Poznyakoff

(mail_mbox_close): mbox can be NULL (e.g. --exec=quit was given)

1 parent cd424fdc
...@@ -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 ())
......