Skip to content

Commit

Permalink
Merge pull request #86 from deeptools/fix85
Browse files Browse the repository at this point in the history
Fix #85
  • Loading branch information
dpryan79 authored May 14, 2019
2 parents 339ebc8 + 9e2925a commit 3ee292c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libBigWig/bigWig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libBigWig/bwValues.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3ee292c

Please sign in to comment.