From 7eac96827e750bbbc23c15b69e2842a3e44267c2 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 10 Dec 2012 17:39:13 -0800 Subject: [PATCH] HashIndex: init exists in col_split_level and reset_attr Signed-off-by: Samuel Just --- 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 705558bd15420..167f3f1db03b8 100644 --- a/src/os/HashIndex.cc +++ b/src/os/HashIndex.cc @@ -60,7 +60,7 @@ int HashIndex::cleanup() { int HashIndex::reset_attr( const vector &path) { - int exists; + int exists = 0; int r = path_exists(path, &exists); if (r < 0) return r; @@ -149,7 +149,7 @@ int HashIndex::col_split_level( // Make parent directories as needed while (*mkdirred < path.size()) { ++*mkdirred; - int exists; + int exists = 0; vector creating_path(path.begin(), path.begin()+*mkdirred); r = to.path_exists(creating_path, &exists); if (r < 0) -- 2.39.5