From 4b210a839a427d3aeb465a97bc7707a2f409bcbb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 24 Jan 2016 14:43:55 +0200 Subject: [PATCH] Fixed uninitialized variable in IOKit controller handler --- src/posix/cocoa/i_joystick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/posix/cocoa/i_joystick.cpp b/src/posix/cocoa/i_joystick.cpp index 9b9487cf6..c4bcc85c3 100644 --- a/src/posix/cocoa/i_joystick.cpp +++ b/src/posix/cocoa/i_joystick.cpp @@ -157,8 +157,9 @@ private: IOHIDElementCookie cookie; int32_t value; - DigitalButton(const IOHIDElementCookie cookie) + explicit DigitalButton(const IOHIDElementCookie cookie) : cookie(cookie) + , value(0) { } };