]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initialize variable before call 1191/head
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 5 Feb 2014 23:19:51 +0000 (15:19 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 5 Feb 2014 23:19:51 +0000 (15:19 -0800)
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 <yehuda@inktank.com>
src/rgw/rgw_bucket.cc

index 81554085766e92abf79154e081fb3db5195797bd..48f0404ca461e968ffe27363cbb071dff864d8d9 100644 (file)
@@ -51,7 +51,7 @@ int rgw_read_user_buckets(RGWRados *store, string user_id, RGWUserBuckets& bucke
   bufferlist header;
   list<cls_user_bucket_entry> entries;
 
-  bool truncated;
+  bool truncated = false;
   string m = marker;
 
   do {