rbd-replay-prep.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2014-10-22 10:47:29 +02:00
parent be66b8250c
commit 53f2dad7e0

View File

@ -199,10 +199,9 @@ public:
struct bt_iter *bt_itr = bt_ctf_get_iter(itr);
uint64_t trace_start = 0;
struct bt_ctf_event *evt;
bool first = true;
while(true) {
evt = bt_ctf_iter_read_event(itr);
struct bt_ctf_event *evt = bt_ctf_iter_read_event(itr);
if(!evt) {
break;
}