From cf5ad68fc395bd521bf24274479a630d0f0d2d2c Mon Sep 17 00:00:00 2001 From: derek Date: Wed, 22 Feb 2012 21:49:18 -0500 Subject: [PATCH 1/1] Provided initialization values for previously unspecified (potentially garbage) integer fields in default-constructed BamAlignments --- src/api/BamAlignment.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/BamAlignment.cpp b/src/api/BamAlignment.cpp index 0b13fb4..3a508c4 100644 --- a/src/api/BamAlignment.cpp +++ b/src/api/BamAlignment.cpp @@ -2,7 +2,7 @@ // BamAlignment.cpp (c) 2009 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 17 October 2011 (DB) +// Last modified: 22 February 2012 (DB) // --------------------------------------------------------------------------- // Provides the BamAlignment data structure // *************************************************************************** @@ -70,8 +70,12 @@ using namespace std; \brief constructor */ BamAlignment::BamAlignment(void) - : RefID(-1) + : Length(0) + , RefID(-1) , Position(-1) + , Bin(0) + , MapQuality(0) + , AlignmentFlag(0) , MateRefID(-1) , MatePosition(-1) , InsertSize(0) -- 2.39.2