]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fixed setting refcount to autocreated shared namespace.
authorTimo Sirainen <tss@iki.fi>
Sat, 31 Jul 2010 18:44:24 +0000 (19:44 +0100)
committerTimo Sirainen <tss@iki.fi>
Sat, 31 Jul 2010 18:44:24 +0000 (19:44 +0100)
src/lib-storage/index/shared/shared-storage.c

index 4341e0683ff641734394b355fc14d00df9a421de..3667aa1c19128fa39ba363f4a63fdbbb748c9bab 100644 (file)
@@ -251,6 +251,7 @@ int shared_storage_get_namespace(struct mail_namespace **_ns,
 
        /* create the new namespace */
        new_ns = i_new(struct mail_namespace, 1);
+       new_ns->refcount = 1;
        new_ns->type = NAMESPACE_SHARED;
        new_ns->user = user;
        new_ns->prefix = i_strdup(str_c(prefix));