Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3024:8939c2d75a89 HEAD
Don't create empty keyword lists.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 29 Dec 2004 17:48:54 +0200 |
parents | 9d1b05604dd9 |
children | 44c5e8c50ad4 |
files | src/imap/commands-util.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/commands-util.c Wed Dec 29 17:48:35 2004 +0200 +++ b/src/imap/commands-util.c Wed Dec 29 17:48:54 2004 +0200 @@ -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; }