[dovecot-cvs] dovecot/src/imap commands-util.c,1.39,1.40

cras at dovecot.org cras at dovecot.org
Wed Dec 29 17:48:56 EET 2004


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv25172

Modified Files:
	commands-util.c 
Log Message:
Don't create empty keyword lists.



Index: commands-util.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/commands-util.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- commands-util.c	26 Dec 2004 09:18:20 -0000	1.39
+++ commands-util.c	29 Dec 2004 15:48:54 -0000	1.40
@@ -233,7 +233,8 @@
 
 	atom = NULL;
 	buffer_append(buffer, &atom, sizeof(atom));
-	*keywords_r = buffer_get_data(buffer, NULL);
+	*keywords_r = buffer->used == sizeof(atom) ? NULL :
+		buffer_get_data(buffer, NULL);
 	return TRUE;
 }
 



More information about the dovecot-cvs mailing list