Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/imap-fetch.c @ 6698:76cf2e548c6d HEAD
Minor error handling fix.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 05 Nov 2007 21:51:18 +0200 |
parents | 1a3604c8ee05 |
children | 19a6aeeb8f4f |
line wrap: on
line diff
--- a/src/imap/imap-fetch.c Mon Nov 05 21:48:45 2007 +0200 +++ b/src/imap/imap-fetch.c Mon Nov 05 21:51:18 2007 +0200 @@ -195,6 +195,9 @@ data = str_data(ctx->cur_str); len = str_len(ctx->cur_str); + if (len == 0) + return 0; + /* there's an extra space at the end if we added any fetch items to buffer */ if (data[len-1] == ' ') {