From a634a13d4687dce33bfcf174a32bf7fc3631c442 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 15 May 2013 15:00:53 +0200 Subject: [PATCH] test/system/systest_runnable.cc: reduce scope of 'ret' in join() Signed-off-by: Danny Al-Gaaf --- src/test/system/systest_runnable.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/system/systest_runnable.cc b/src/test/system/systest_runnable.cc index f646d2323f9..c0bc977618f 100644 --- a/src/test/system/systest_runnable.cc +++ b/src/test/system/systest_runnable.cc @@ -168,10 +168,10 @@ join() std::string SysTestRunnable:: run_until_finished(std::vector < SysTestRunnable * > &runnables) { - int ret, index = 0; + int index = 0; for (std::vector < SysTestRunnable * >::const_iterator r = runnables.begin(); r != runnables.end(); ++r) { - ret = (*r)->start(); + int ret = (*r)->start(); if (ret) { ostringstream oss; oss << "run_until_finished: got error " << ret -- 2.47.3