Mercurial > dovecot > core-2.2
changeset 1219:e4210f1ea3f1 HEAD
crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Feb 2003 21:51:44 +0200 |
parents | a70ebd3a59e2 |
children | fb8cec12d2ee |
files | src/lib-storage/index/index-save.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-save.c Thu Feb 20 18:41:16 2003 +0200 +++ b/src/lib-storage/index/index-save.c Thu Feb 20 21:51:44 2003 +0200 @@ -162,7 +162,7 @@ failed = FALSE; for (;;) { data = i_stream_get_data(input, &size); - if (!failed) { + if (!failed && size > 0) { ret = write_func(output, data, size); if (ret < 0) { set_write_error(storage, output, path);