From 09108be37909fd087b301c221881fd11601e88b5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 19 Sep 2007 23:18:10 +0200 Subject: [PATCH] Fixed a bug in s-internal, which caused it to write bogus records when the array sorter decided to swap buffers. --- lib/sorter/s-internal.h | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.39.2