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=refs%2Fpull%2F1191%2Fhead;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 81554085766e..48f0404ca461 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 {