Skip to content

Commit 3ee292c

Browse files
authored
Merge pull request #86 from deeptools/fix85
Fix #85
2 parents 339ebc8 + 9e2925a commit 3ee292c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libBigWig/bigWig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extern "C" {
5353
/*!
5454
* The library version number
5555
*/
56-
#define LIBBIGWIG_VERSION 0.4.3
56+
#define LIBBIGWIG_VERSION 0.4.4
5757

5858
/*!
5959
* If 1, then this library was compiled with remote file support.

libBigWig/bwValues.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static bwRTree_t *readRTreeIdx(bigWigFile_t *fp, uint64_t offset) {
3333
return NULL;
3434
}
3535

36-
node = malloc(sizeof(bwRTree_t));
36+
node = calloc(1, sizeof(bwRTree_t));
3737
if(!node) return NULL;
3838

3939
if(bwRead(&(node->blockSize), sizeof(uint32_t), 1, fp) != 1) goto error;

0 commit comments

Comments
 (0)