Skip to content

Commit

Permalink
Ensuring variables are initialised before passing their addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
jonclayden committed Mar 28, 2021
1 parent 4d3a038 commit 52b8b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dcm2niix/nii_dicom_batch.cpp
Expand Up @@ -6743,8 +6743,8 @@ int nii_loadDirCore(char *indir, struct TDCMopts* opts) {
bool matched = false;
// If the file matches an existing series, add it to the corresponding file list
for (int j = 0; j < opts->series.size(); j++) {
bool isMultiEchoUnused, isNonParallelSlices, isCoilVaries;
if (isSameSet(opts->series[j].representativeData, dcmList[i], opts, &warnings, &isMultiEchoUnused, &isNonParallelSlices, &isCoilVaries)) {
bool isMultiEcho = false, isNonParallelSlices = false, isCoilVaries = false;
if (isSameSet(opts->series[j].representativeData, dcmList[i], opts, &warnings, &isMultiEcho, &isNonParallelSlices, &isCoilVaries)) {
opts->series[j].files.push_back(nameList.str[i]);
matched = true;
break;
Expand Down

0 comments on commit 52b8b14

Please sign in to comment.