DatabaseExperiment: fix wrong variable scope

This fixes a wrong variable scope introduced in commit 193e5b7,
breaking compilation.

Change-Id: I74194e9ea6e726bc0a7ce2ee5ad5439b7de87fba
This commit is contained in:
Horst Schirmeier
2015-04-10 15:07:45 +02:00
parent 374011986c
commit 96fae94b1f

View File

@ -114,6 +114,7 @@ bool DatabaseExperiment::run()
}
// Do we need to fast-forward at all?
fail::BaseListener *listener = 0;
if (injection_instr > 0) {
// Create a listener that matches any IP event. It is used to
// forward to the injection point.
@ -122,7 +123,6 @@ bool DatabaseExperiment::run()
bp.setCounter(injection_instr);
simulator.addListener(&bp);
fail::BaseListener * listener;
while (true) {
listener = simulator.resume();
if (listener == &bp) {