From: Henry Amrhein Date: Thu, 3 Jan 2013 22:49:36 +0000 (-0800) Subject: razf.c: X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=commitdiff_plain;h=d255564c7080a7a71bc2312dab6a3007f72bfe8b razf.c: realloc() wrapper didn't assign the new pointer upon success. --- 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];