--- dovecot-1.0.rc1.orig/src/master/mail-process.c	Tue Jun 27 22:00:46 2006
+++ dovecot-1.0.rc1/src/master/mail-process.c	Fri Jun 30 16:08:40 2006
@@ -161,7 +161,7 @@
 	for (i = 1; ns != NULL; i++, ns = ns->next) {
 		t_push();
 
-		location = ns->location != NULL ? ns->location :
+		location = *ns->location != '\0' ? ns->location :
 			default_location;
 		location = expand_mail_env(location, table);
 		env_put(t_strdup_printf("NAMESPACE_%u=%s", i, location));
