Commit 4616b75f 4616b75f8a0e1d6fbbff7b20f418bc39c44ee34f by Sergey Poznyakoff

Bugfix.

* mailbox/mbx_default.c (mu_mailbox_create_default): Reset mail to NULL
if it is "".
1 parent 1e7a81ad
1 /* GNU Mailutils -- a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2003, 2004, 2 Copyright (C) 1999, 2000, 2001, 2003, 2004,
3 2005, 2006, 2007 Free Software Foundation, Inc. 3 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
...@@ -394,7 +394,10 @@ mu_mailbox_create_default (mu_mailbox_t *pmbox, const char *mail) ...@@ -394,7 +394,10 @@ mu_mailbox_create_default (mu_mailbox_t *pmbox, const char *mail)
394 if (pmbox == NULL) 394 if (pmbox == NULL)
395 return MU_ERR_OUT_PTR_NULL; 395 return MU_ERR_OUT_PTR_NULL;
396 396
397 if (mail == NULL || *mail == '\0') 397 if (mail && *mail == 0)
398 mail = NULL;
399
400 if (mail == NULL)
398 { 401 {
399 if (!_mu_mailbox_pattern) 402 if (!_mu_mailbox_pattern)
400 { 403 {
......