diff --git a/Control/AthenaExamples/AthExOnnxRuntime/src/EvaluateModel.cxx b/Control/AthenaExamples/AthExOnnxRuntime/src/EvaluateModel.cxx
index aa2e9e6eeaa0750d522c14051e034a7ceed54e35..aa19cb25ed978e898e6f77d89a1f083ef935f3cc 100644
--- a/Control/AthenaExamples/AthExOnnxRuntime/src/EvaluateModel.cxx
+++ b/Control/AthenaExamples/AthExOnnxRuntime/src/EvaluateModel.cxx
@@ -63,7 +63,7 @@ namespace AthOnnx {
      	ATH_MSG_INFO("Label for the input test data: ");
    for(int ibatch = 0; ibatch < m_batchSize; ibatch++){
      	float max = -999;
-     	int max_index;
+     	int max_index = 0;
      	for (int i = 0; i < 10; i++){
        		ATH_MSG_DEBUG("Score for class "<< i <<" = "<<outputScores[i] << " in batch " << ibatch);
             int index = i + ibatch * 10;