From: Timo Sirainen Date: Mon, 19 Jan 2009 01:14:31 +0000 (-0500) Subject: listescape plugin: The next namespaces_created callback was called with NULL namespaces. X-Git-Tag: 1.2.beta1~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10be15edf8a41914659bcdf2684060fbf6e84abc;p=thirdparty%2Fdovecot%2Fcore.git listescape plugin: The next namespaces_created callback was called with NULL namespaces. --HG-- branch : HEAD --- diff --git a/src/plugins/listescape/listescape-plugin.c b/src/plugins/listescape/listescape-plugin.c index b89295ac2d..73605254c1 100644 --- a/src/plugins/listescape/listescape-plugin.c +++ b/src/plugins/listescape/listescape-plugin.c @@ -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)