Skip to content

Commit

Permalink
Merge pull request #1285 from fspindle/fix_warning_tt_mi
Browse files Browse the repository at this point in the history
Fix warning 'Bti' is used uninitialized in tt_mi module
  • Loading branch information
fspindle authored Nov 29, 2023
2 parents a124f77 + 648ad79 commit e49493a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ void vpTemplateTrackerMIBSpline::PutTotPVBspline4(double *Prt, double *dPrt, dou
double Bti[4];
double dBti[4];
double d2Bti[4];

for (size_t i = 0; i < 4; ++i) {
Bti[i] = 0.;
dBti[i] = 0.;
d2Bti[i] = 0.;
}

double *ptBti = &Bti[0];
double *ptdBti = &dBti[0];
Expand Down

0 comments on commit e49493a

Please sign in to comment.