diff --git a/Framework/AnalysisSupport/src/TTreePlugin.cxx b/Framework/AnalysisSupport/src/TTreePlugin.cxx index 4481c06a8c6d9..90b862e5fc8d1 100644 --- a/Framework/AnalysisSupport/src/TTreePlugin.cxx +++ b/Framework/AnalysisSupport/src/TTreePlugin.cxx @@ -209,7 +209,7 @@ auto readBoolValues = [](uint8_t* target, ReadOps& op, TBufferFile& rootBuffer) int readLast = 0; while (readEntries < op.rootBranchEntries) { auto beginValue = readLast; - auto readLast = op.branch->GetBulkRead().GetBulkEntries(readEntries, rootBuffer); + readLast = op.branch->GetBulkRead().GetBulkEntries(readEntries, rootBuffer); int size = readLast * op.listSize; readEntries += readLast; for (int i = beginValue; i < beginValue + size; ++i) {