diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index a9e827ef6..5800700db 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -1094,7 +1094,7 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout) const char *pointerMsg = NULL, *keyboardMsg = NULL; InputInfoPtr *devs, /* iterator */ indp; - InputInfoRec Pointer, Keyboard; + InputInfoRec Pointer = {}, Keyboard = {}; XF86ConfInputPtr confInput; XF86ConfInputRec defPtr, defKbd; int count = 0; diff --git a/hw/xwin/winmouse.c b/hw/xwin/winmouse.c index da1d5a9e7..ee93d8f02 100644 --- a/hw/xwin/winmouse.c +++ b/hw/xwin/winmouse.c @@ -39,6 +39,7 @@ #include "inputstr.h" #include "exevents.h" /* for button/axes labels */ #include "xserver-properties.h" +#include "inpututils.h" /* Peek the internal button mapping */ static CARD8 const *g_winMouseButtonMap = NULL;