From 9ecf3467a3efc071954c4f69a23b51e677742c1f Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 5 Feb 2014 15:19:51 -0800 Subject: [PATCH] rgw: initialize variable before call Need to initialize the truncated variable, as we sometimes ignore error response (e.g., with ENOENT), and in such cases we can't expect it to be set. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_bucket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 81554085766e9..48f0404ca461e 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -51,7 +51,7 @@ int rgw_read_user_buckets(RGWRados *store, string user_id, RGWUserBuckets& bucke bufferlist header; list entries; - bool truncated; + bool truncated = false; string m = marker; do { -- 2.39.5