From: Adam C. Emerson Date: Mon, 7 May 2018 20:00:45 +0000 (-0400) Subject: rgw: Fix uninitialized value warning X-Git-Tag: v14.0.0~162^2~22 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=27e95a4144a3caf40e4db6a82b93b792f4f9d145;p=ceph-ci.git rgw: Fix uninitialized value warning Signed-off-by: Adam C. Emerson --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 5926b5290ee..bb8876cf8a4 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -1618,7 +1618,7 @@ static int rgw_bucket_unlink_instance(cls_method_context_t hctx, bufferlist *in, if (olh_key == dest_key) { /* this is the current head, need to update! */ cls_rgw_obj_key next_key; - bool found; + bool found = false; ret = obj.find_next_key(&next_key, &found); if (ret < 0) { CLS_LOG(0, "ERROR: obj.find_next_key() returned ret=%d", ret);