Skip to content

Commit 77528e7

Browse files
committed
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>
1 parent 3a89a33 commit 77528e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/msg/async/EventSelect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SelectDriver : public EventDriver {
3131
CephContext *cct;
3232

3333
public:
34-
SelectDriver(CephContext *c): cct(c) {}
34+
SelectDriver(CephContext *c): max_fd(0), cct(c) {}
3535
virtual ~SelectDriver() {}
3636

3737
int init(int nevent);

0 commit comments

Comments
 (0)