Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: address coverity false positives #17803

Merged
merged 1 commit into from Sep 26, 2017
Merged

Conversation

amitkumar50
Copy link

Fixes the coverity issues:

** 1414517 Uninitialized pointer field

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

** 1274324 Uninitialized scalar field

  1. uninit_member: Non-static class member m_pool_id is not initialized
    in this constructor nor in any functions that it calls.
    CID 1274324 (FreeBSD support. #1 of 1): Uninitialized scalar field (UNINIT_CTOR)
  2. uninit_member: Non-static class member m_snap_seq is not initialized
    in this constructor nor in any functions that it calls.

** 1356906 Uninitialized scalar field

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

Signed-off-by: Amit Kumar amitkuma@redhat.com

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

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

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

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
@dillaman dillaman changed the title librbd,librados,tools: Initialize aio_comp,m_ variables test: address coverity false positives Sep 26, 2017
@dillaman dillaman added the tests label Sep 26, 2017
@dillaman dillaman merged commit 642afd2 into ceph:master Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants