From: Danny Al-Gaaf Date: Thu, 11 Jun 2015 18:32:29 +0000 (+0200) Subject: msg/async/EventSelect.h: init max_fd in ctor X-Git-Tag: v9.1.0~446^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=77528e7bfadf2cf3f25f1588e6cfd8d51b04fa71;p=ceph.git 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 --- diff --git a/src/msg/async/EventSelect.h b/src/msg/async/EventSelect.h index 154644785c91..96ec3229ed96 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);