Skip to content

Commit

Permalink
HBV2GFA uninitialised variable fix, caused segfaults when compiled wi…
Browse files Browse the repository at this point in the history
…th optimisations.
  • Loading branch information
ljyanesm committed Sep 25, 2019
1 parent 7a10817 commit abe791c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/hbv2gfa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main(const int argc, const char * argv[]) {

std::cout<<"=== Graph stats === "<<std::endl;
std::vector<uint64_t> e_sizes;
uint64_t total_size,canonical_size;
uint64_t total_size(0),canonical_size(0);

for (int e=0;e<hbv.EdgeObjectCount();e++){
auto eo=hbv.EdgeObject(e);
Expand Down

0 comments on commit abe791c

Please sign in to comment.