]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix valgrind UninitValue warning
authorYan, Zheng <zyan@redhat.com>
Thu, 6 Apr 2017 12:33:19 +0000 (20:33 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 11 May 2017 06:13:23 +0000 (14:13 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/messages/MClientCaps.h

index 1db9bd16b625ac24e89382a0c863f4cfa7c53f7c..e973b63413818eadcf5e0f55557841a077a43f8c 100644 (file)
@@ -288,6 +288,7 @@ public:
     ::encode(head, payload);
     ceph_mds_caps_body_legacy body;
     if (head.op == CEPH_CAP_OP_EXPORT) {
+      memset(&body, 0, sizeof(body));
       body.peer = peer;
     } else {
       body.size = size;