Mercurial > dovecot > core-2.2
changeset 13709:e5fb66051028
lib-storage: Crashfix for "auto" driver in some situations.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 Nov 2011 19:38:55 +0200 |
parents | 7559768b1491 |
children | f11ce0efa6a8 |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c Wed Nov 16 19:38:16 2011 +0200 +++ b/src/lib-storage/mail-storage.c Wed Nov 16 19:38:55 2011 +0200 @@ -136,7 +136,8 @@ /* no mail_location, autodetect */ } else if (strcmp(driver, "auto") == 0) { /* explicit autodetection with "auto" driver. */ - if (*list_set->root_dir == '\0') { + if (list_set->root_dir != NULL && + *list_set->root_dir == '\0') { /* handle the same as with driver=NULL */ list_set->root_dir = NULL; }