]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd,messages: Initialize read_length,options,send_reply
authoramitkuma <amitkuma@redhat.com>
Tue, 19 Sep 2017 14:02:02 +0000 (19:32 +0530)
committeramitkuma <amitkuma@redhat.com>
Tue, 19 Sep 2017 14:02:02 +0000 (19:32 +0530)
commitdfe152f3a11d061ac533b00d70bc8c4d746b1ec3
treed6590932216c8c75434f0fa9f7b927c623d08514
parent4639b96cae58a7802708e0c326c5f8c7395bea1e
osd,messages: Initialize read_length,options,send_reply

Fixes the coverity issues:

** 1415776 Uninitialized scalar field
CID 1415776 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member field read_length.v is
not initialized in this constructor nor in any functions that it calls.

** 1415811 Uninitialized scalar field
CID 1415811 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member options is not initialized
in this constructor nor in any functions that it calls.

** 1415850 Uninitialized scalar field
CID 1415850 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member sent_reply is not initialized
in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/messages/MOSDForceRecovery.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h