From: Yehuda Sadeh Date: Wed, 5 Feb 2014 23:19:51 +0000 (-0800) Subject: rgw: initialize variable before call X-Git-Tag: v0.77~9^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5b7e2b2297c730da8a6a99b1184c1bc07920db4c;p=ceph.git 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 (cherry picked from commit 9ecf3467a3efc071954c4f69a23b51e677742c1f) --- diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 6394e5f0ce99..9827bad309c9 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; uint64_t total = 0;