]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix uninitialized value warning
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 7 May 2018 20:00:45 +0000 (16:00 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 18 May 2018 13:30:34 +0000 (15:30 +0200)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 27e95a4144a3caf40e4db6a82b93b792f4f9d145)

src/cls/rgw/cls_rgw.cc

index 5926b5290ee4e3c128d032e502e722fb1ae69487..bb8876cf8a4fa620cb08c93714dfd09fcfae6bbe 100644 (file)
@@ -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);