dovecot: Set ns->sep before creating storage so sep_str gets set...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 29 07:18:48 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/0a0ff276bc38
changeset: 7059:0a0ff276bc38
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 29 07:18:44 2007 +0200
description:
Set ns->sep before creating storage so sep_str gets set correctly.

diffstat:

1 file changed, 3 insertions(+), 3 deletions(-)
src/lib-storage/mail-namespace.c |    6 +++---

diffs (22 lines):

diff -r cf4cee852a05 -r 0a0ff276bc38 src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c	Sat Dec 29 07:12:56 2007 +0200
+++ b/src/lib-storage/mail-namespace.c	Sat Dec 29 07:18:44 2007 +0200
@@ -74,15 +74,15 @@ namespace_add_env(pool_t pool, const cha
 		       "yes" : "no");
 	}
 
+	if (sep != NULL)
+		ns->sep = *sep;
 	ns->prefix = p_strdup(pool, prefix);
+
 	if (mail_storage_create(ns, NULL, data, user, flags, lock_method,
 				&error) < 0) {
 		i_error("Namespace '%s': %s", ns->prefix, error);
 		return NULL;
 	}
-
-	if (sep != NULL)
-		ns->sep = *sep;
 	return ns;
 }
 


More information about the dovecot-cvs mailing list