From cf6b481d5eb3f4b175cadd608c07ce78fa892001 Mon Sep 17 00:00:00 2001 From: Horst Schirmeier Date: Sat, 7 Feb 2015 14:42:56 +0100 Subject: [PATCH] DatabaseExperiment: fix uninitialized variable Found by Coverity Scan, CID 25741. Change-Id: I6105fe76afbfe0a6ec76b59778214683d7d754e2 --- src/core/efw/DatabaseExperiment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/efw/DatabaseExperiment.cc b/src/core/efw/DatabaseExperiment.cc index 24c9234e..82fccf24 100644 --- a/src/core/efw/DatabaseExperiment.cc +++ b/src/core/efw/DatabaseExperiment.cc @@ -138,7 +138,7 @@ bool DatabaseExperiment::run() } address_t injection_instr_absolute = fsppilot->injection_instr_absolute(); - bool found_eip; + bool found_eip = false; for (int i = 0; i < BX_SMP_PROCESSORS; i++) { address_t eip = simulator.getCPU(i).getInstructionPointer(); if (eip == injection_instr_absolute) {