From 9e2925aaddc81edf67eb54f788a7deef884f8838 Mon Sep 17 00:00:00 2001 From: dpryan79 Date: Tue, 14 May 2019 16:43:56 +0200 Subject: [PATCH] Fix #85 --- libBigWig/bigWig.h | 2 +- libBigWig/bwValues.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libBigWig/bigWig.h b/libBigWig/bigWig.h index 105d5b9..313459a 100644 --- a/libBigWig/bigWig.h +++ b/libBigWig/bigWig.h @@ -53,7 +53,7 @@ extern "C" { /*! * The library version number */ -#define LIBBIGWIG_VERSION 0.4.3 +#define LIBBIGWIG_VERSION 0.4.4 /*! * If 1, then this library was compiled with remote file support. diff --git a/libBigWig/bwValues.c b/libBigWig/bwValues.c index 5587c49..1018695 100644 --- a/libBigWig/bwValues.c +++ b/libBigWig/bwValues.c @@ -33,7 +33,7 @@ static bwRTree_t *readRTreeIdx(bigWigFile_t *fp, uint64_t offset) { return NULL; } - node = malloc(sizeof(bwRTree_t)); + node = calloc(1, sizeof(bwRTree_t)); if(!node) return NULL; if(bwRead(&(node->blockSize), sizeof(uint32_t), 1, fp) != 1) goto error;