From d255564c7080a7a71bc2312dab6a3007f72bfe8b Mon Sep 17 00:00:00 2001 From: Henry Amrhein Date: Thu, 3 Jan 2013 14:49:36 -0800 Subject: [PATCH] razf.c: realloc() wrapper didn't assign the new pointer upon success. --- razf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/razf.c b/razf.c index f67447c..0223971 100644 --- a/razf.c +++ b/razf.c @@ -90,6 +90,8 @@ static void add_zindex(RAZF *rz, int64_t in, int64_t out){ fprintf(stderr, "[%s] failure to allocate space for new zindex.\n", __func__); abort(); } + rz->index->cell_offsets = cores; + rz->index->bin_offsets = bores; } if(rz->index->size % RZ_BIN_SIZE == 0) rz->index->bin_offsets[rz->index->size / RZ_BIN_SIZE] = out; rz->index->cell_offsets[rz->index->size] = out - rz->index->bin_offsets[rz->index->size / RZ_BIN_SIZE]; -- 2.30.2