]> mj.ucw.cz Git - libucw.git/commitdiff
Fixed a bug in s-internal, which caused it to write bogus records
authorMartin Mares <mj@ucw.cz>
Wed, 19 Sep 2007 21:18:10 +0000 (23:18 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 19 Sep 2007 21:18:10 +0000 (23:18 +0200)
when the array sorter decided to swap buffers.

lib/sorter/s-internal.h

index 5a560b14589bb4c8648cc6ab0a48af8c08d56470..3a7107fe41767679e93d820f0656e568fcc2bfd8 100644 (file)
@@ -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");