Skip to content

Commit 2437c09

Browse files
authored
Merge pull request #49 from blowekamp/fix_valgrind_uninitialized
BUG: Fix Valgrind defect with uninitialized array in doOneDimensionErode
2 parents 420c9f7 + b9567df commit 2437c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/itkLabelSetUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ doOneDimensionErodeFirstPass(TInIter & inputIterator,
257257
// const RealType magnitude = (magnitudeSign * iscale * iscale)/(2.0 *
258258
// sigma);
259259
const RealType magnitude = (magnitudeSign * iscale * iscale) / (2.0);
260-
LineBufferType lineBuf(lineLength);
260+
LineBufferType lineBuf(lineLength, 0.0);
261261
LabelBufferType labBuf(lineLength);
262262

263263
inputIterator.SetDirection(direction);

0 commit comments

Comments
 (0)