Mercurial > dovecot > core-2.2
changeset 336:38bb7337df0c HEAD
t_push() added
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 30 Sep 2002 23:10:14 +0300 |
parents | 526ebe074df1 |
children | 25f2b396c297 |
files | src/lib-index/mbox/mbox-fsck.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-fsck.c Mon Sep 30 23:02:11 2002 +0300 +++ b/src/lib-index/mbox/mbox-fsck.c Mon Sep 30 23:10:14 2002 +0300 @@ -97,13 +97,19 @@ return TRUE; } + t_push(); + /* copy & update the part data */ part_data_copy = t_malloc(size); memcpy(part_data_copy, part_data, size); if (!message_part_serialize_update_header(part_data_copy, size, - hdr_size)) + hdr_size)) { + t_pop(); return FALSE; + } + + t_pop(); index->update_field_raw(update, FIELD_TYPE_MESSAGEPART, part_data_copy, size);