dovecot-1.2: listescape plugin: The next namespaces_created call...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 19 03:15:34 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/a498c440eef2
changeset: 8651:a498c440eef2
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 18 20:14:31 2009 -0500
description:
listescape plugin: The next namespaces_created callback was called with NULL namespaces.

diffstat:

1 file changed, 5 insertions(+), 3 deletions(-)
src/plugins/listescape/listescape-plugin.c |    8 +++++---

diffs (18 lines):

diff -r 81fd92599c7f -r a498c440eef2 src/plugins/listescape/listescape-plugin.c
--- a/src/plugins/listescape/listescape-plugin.c	Sat Jan 17 17:21:29 2009 -0500
+++ b/src/plugins/listescape/listescape-plugin.c	Sun Jan 18 20:14:31 2009 -0500
@@ -295,9 +295,11 @@ static void
 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)


More information about the dovecot-cvs mailing list