Skip to content

Commit

Permalink
BUG: initialize image buffer in Nifti direction test
Browse files Browse the repository at this point in the history
This addresses valgrind defects.
  • Loading branch information
blowekamp authored and hjmjohnson committed Aug 3, 2022
1 parent f9681c6 commit 88e1100
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ itkNiftiWriteCoerceOrthogonalDirectionTest(int argc, char * argv[])
region.SetIndex(startIndex);
auto image1 = ImageType::New();
image1->SetRegions(region);
image1->Allocate();
image1->Allocate(true);

ImageType::DirectionType mat1;
mat1.SetIdentity();
Expand Down

0 comments on commit 88e1100

Please sign in to comment.