From: Mykola Golub Date: Wed, 23 Aug 2017 12:02:07 +0000 (+0200) Subject: librbd: fix valgrind uninitialised value warning X-Git-Tag: v13.0.1~1013^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e9f39d3774feda1c0570529ad7eebf04d585f92;p=ceph.git librbd: fix valgrind uninitialised value warning Signed-off-by: Mykola Golub --- diff --git a/src/librbd/operation/SnapshotRemoveRequest.cc b/src/librbd/operation/SnapshotRemoveRequest.cc index 4cbfc03b0d49..4daf9fdfb312 100644 --- a/src/librbd/operation/SnapshotRemoveRequest.cc +++ b/src/librbd/operation/SnapshotRemoveRequest.cc @@ -107,6 +107,7 @@ void SnapshotRemoveRequest::send_remove_object_map() { if (image_ctx.snap_info.find(m_snap_id) == image_ctx.snap_info.end()) { lderr(cct) << this << " " << __func__ << ": snapshot doesn't exist" << dendl; + m_state = STATE_ERROR; this->async_complete(-ENOENT); return; }