Skip to content
Snippets Groups Projects
Commit 96fae94b authored by Horst Schirmeier's avatar Horst Schirmeier
Browse files

DatabaseExperiment: fix wrong variable scope

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

Change-Id: I74194e9ea6e726bc0a7ce2ee5ad5439b7de87fba
parent 37401198
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment