Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6506:c83e3272ae88 HEAD
Using uninitialized variable sometimes caused crash by trying to use too
much memory.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 30 Sep 2007 15:33:23 +0300 |
parents | 0da3d9671426 |
children | 392a49f0c69a |
files | src/lib-mail/message-search.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/message-search.c Sun Sep 30 15:01:24 2007 +0300 +++ b/src/lib-mail/message-search.c Sun Sep 30 15:33:23 2007 +0300 @@ -39,8 +39,8 @@ return 0; t_push(); + key_len = strlen(key); key_utf8 = t_str_new(I_MAX(128, key_len*2)); - key_len = strlen(key); if (charset_to_utf8(t, (const unsigned char *)key, &key_len, key_utf8) != CHARSET_RET_OK) { t_pop();