Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6096:877d861f2dd3 HEAD
Crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 19 Jul 2007 03:37:43 +0300 |
parents | b6a477859a3c |
children | d5d3adb86e12 |
files | src/lib-index/mailbox-list-index.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mailbox-list-index.c Thu Jul 19 03:34:08 2007 +0300 +++ b/src/lib-index/mailbox-list-index.c Thu Jul 19 03:37:43 2007 +0300 @@ -717,6 +717,9 @@ str_append(ctx->name_path, name); t_pop(); + info_r->name = str_c(ctx->name_path); + info_r->uid = recs->uid; + dir_offset = mail_index_offset_to_uint32(recs->dir_offset); if (dir_offset != 0 && array_count(&ctx->path) < ctx->recurse_level) { /* recurse into children */ @@ -729,12 +732,10 @@ ctx->failed = TRUE; return -1; } + recs = NULL; /* don't use anymore */ } else { ctx->cur.pos++; } - - info_r->name = str_c(ctx->name_path); - info_r->uid = recs->uid; info_r->has_children = dir_offset != 0; return 1; }