]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/fs/FS.h: init member vars in aio_t ctor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 23 Feb 2016 10:51:49 +0000 (11:51 +0100)
committerSage Weil <sage@redhat.com>
Wed, 9 Nov 2016 19:45:22 +0000 (14:45 -0500)
CID 1351707 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member offset is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member length is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/fs/FS.h

index 18e99a20feaa696d7a46ab2ad95918548346d9bc..7b3b378e61ca9a732d2248326667b4dd330de164 100644 (file)
@@ -64,7 +64,7 @@ public:
 
     boost::intrusive::list_member_hook<> queue_item;
 
-    aio_t(void *p, int f) : priv(p), fd(f), rval(-1000) {
+    aio_t(void *p, int f) : priv(p), fd(f), offset(0), length(0), rval(-1000) {
       memset(&iocb, 0, sizeof(iocb));
     }