]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail user: Assume an empty home directory is the same as a missing one.
authorTimo Sirainen <tss@iki.fi>
Sat, 25 Oct 2008 12:42:03 +0000 (15:42 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 25 Oct 2008 12:42:03 +0000 (15:42 +0300)
--HG--
branch : HEAD

src/lib-storage/mail-user.c

index 1a15caca6390f45a21813f66eda47b79ed1db5cf..fd415af54b30b6680f8aa4880046f2d6612a1c3b 100644 (file)
@@ -24,7 +24,7 @@ struct mail_user *mail_user_init(const char *username, const char *home)
        pool = pool_alloconly_create("mail user", 512);
        user = p_new(pool, struct mail_user, 1);
        user->pool = pool;
-       user->username = p_strdup(pool, username);
+       user->username = p_strdup_empty(pool, username);
        user->home = p_strdup(pool, home);
        user->v.deinit = mail_user_deinit_base;
        p_array_init(&user->module_contexts, user->pool, 5);