From: Martin Mares Date: Wed, 19 Sep 2007 21:18:10 +0000 (+0200) Subject: Fixed a bug in s-internal, which caused it to write bogus records X-Git-Tag: holmes-import~506^2~13^2~6 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=09108be37909fd087b301c221881fd11601e88b5;p=libucw.git Fixed a bug in s-internal, which caused it to write bogus records when the array sorter decided to swap buffers. --- diff --git a/lib/sorter/s-internal.h b/lib/sorter/s-internal.h index 5a560b14..3a7107fe 100644 --- a/lib/sorter/s-internal.h +++ b/lib/sorter/s-internal.h @@ -177,6 +177,7 @@ static int P(internal)(struct sort_context *ctx, struct sort_bucket *bin, struct , workspace, bin->hash_bits #endif ); + last_item = item_array + count; ctx->total_int_time += get_timer(&timer); SORT_XTRACE(5, "s-internal: Writing");