]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
listescape plugin: The next namespaces_created callback was called with NULL namespaces.
authorTimo Sirainen <tss@iki.fi>
Mon, 19 Jan 2009 01:14:31 +0000 (20:14 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 19 Jan 2009 01:14:31 +0000 (20:14 -0500)
--HG--
branch : HEAD

src/plugins/listescape/listescape-plugin.c

index b89295ac2d4f27e103b22409c2873c4d1d93971e..73605254c1b3966b0b43ad03393cbb0d999d55fb 100644 (file)
@@ -295,9 +295,11 @@ static void listescape_mailbox_list_created(struct mailbox_list *list)
 static void
 listescape_mail_namespaces_created(struct mail_namespace *namespaces)
 {
-       for (; namespaces != NULL; namespaces = namespaces->next) {
-               if (namespaces->real_sep != namespaces->sep)
-                       namespaces->real_sep = namespaces->sep;
+       struct mail_namespace *ns = namespaces;
+
+       for (ns = namespaces; ns != NULL; ns = ns->next) {
+               if (ns->real_sep != ns->sep)
+                       ns->real_sep = ns->sep;
        }
 
        if (listescape_next_hook_mail_namespaces_created != NULL)