From 9f8cbd79fc1040e855fe9325447983bd8d13f1b9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 11 Nov 2015 14:35:26 +0100 Subject: joy: memset won't hurt --- opentrack/win32-joystick-shortcuts.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'opentrack') diff --git a/opentrack/win32-joystick-shortcuts.hpp b/opentrack/win32-joystick-shortcuts.hpp index 5a2fc6c8..ee26215e 100644 --- a/opentrack/win32-joystick-shortcuts.hpp +++ b/opentrack/win32-joystick-shortcuts.hpp @@ -83,6 +83,7 @@ struct win32_joy_ctx } DIJOYSTATE2 js; + memset(&js, 0, sizeof(js)); if (FAILED(hr = joy_handle->GetDeviceState(sizeof(js), &js))) { -- cgit v1.2.3