From 8254072b9188b4fd36c7e24154f0244792b1f84d Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 15 May 2013 14:05:40 +0200 Subject: [PATCH] os/HashIndex.cc: reduce scope of a local variable Signed-off-by: Danny Al-Gaaf --- src/os/HashIndex.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/HashIndex.cc b/src/os/HashIndex.cc index d5f2d74080c5..56b2c017d038 100644 --- a/src/os/HashIndex.cc +++ b/src/os/HashIndex.cc @@ -298,9 +298,9 @@ int HashIndex::_lookup(const hobject_t &hoid, vector path_comp; get_path_components(hoid, &path_comp); vector::iterator next = path_comp.begin(); - int r, exists; + int exists; while (1) { - r = path_exists(*path, &exists); + int r = path_exists(*path, &exists); if (r < 0) return r; if (!exists) { -- 2.47.3