From 0facc1d93433b6ae414b4f93c1c623a97192ecd3 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Mon, 7 May 2018 16:00:45 -0400 Subject: [PATCH] rgw: Fix uninitialized value warning Signed-off-by: Adam C. Emerson (cherry picked from commit 27e95a4144a3caf40e4db6a82b93b792f4f9d145) --- src/cls/rgw/cls_rgw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 5926b5290ee4e..bb8876cf8a4fa 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); -- 2.39.5