From: Yehuda Sadeh Date: Wed, 5 Feb 2014 23:19:51 +0000 (-0800) Subject: rgw: initialize variable before call X-Git-Tag: v0.78~217^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ecf3467a3efc071954c4f69a23b51e677742c1f;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 --- diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 81554085766..48f0404ca46 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 {