Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1002:a5f39241d089 HEAD
store/append crashed if no custom flags were being set (ie. almost always)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 21 Jan 2003 13:20:14 +0200 |
parents | fb9c95a8847f |
children | 61400b3bc338 |
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 Tue Jan 21 13:17:43 2003 +0200 +++ b/src/imap/commands-util.c Tue Jan 21 13:20:14 2003 +0200 @@ -131,7 +131,8 @@ max_flags = MAIL_CUSTOM_FLAGS_COUNT; memset(flags, 0, sizeof(*flags)); - flags->custom_flags = t_new(const char *, flags->custom_flags_count); + flags->custom_flags = flags->custom_flags_count == 0 ? NULL : + t_new(const char *, flags->custom_flags_count); flag_pos = 0; while (args->type != IMAP_ARG_EOL) {