summaryrefslogtreecommitdiffstats
path: root/src/msg/async/EventSelect.h
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2015-06-11 20:32:29 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2015-07-17 10:50:44 +0200
commit77528e7bfadf2cf3f25f1588e6cfd8d51b04fa71 (patch)
tree0ab6f119dcd8a91ff6f7c8211de21161100a5ff5 /src/msg/async/EventSelect.h
parentosd/ECMsgTypes.h: init tid in default ctor (diff)
downloadceph-77528e7bfadf2cf3f25f1588e6cfd8d51b04fa71.tar.xz
ceph-77528e7bfadf2cf3f25f1588e6cfd8d51b04fa71.zip
msg/async/EventSelect.h: init max_fd in ctor
Fix for: CID 1254381 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member max_fd is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/msg/async/EventSelect.h')
-rw-r--r--src/msg/async/EventSelect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg/async/EventSelect.h b/src/msg/async/EventSelect.h
index 154644785c9..96ec3229ed9 100644
--- a/src/msg/async/EventSelect.h
+++ b/src/msg/async/EventSelect.h
@@ -31,7 +31,7 @@ class SelectDriver : public EventDriver {
CephContext *cct;
public:
- SelectDriver(CephContext *c): cct(c) {}
+ SelectDriver(CephContext *c): max_fd(0), cct(c) {}
virtual ~SelectDriver() {}
int init(int nevent);