diff --git a/src/evdev.c b/src/evdev.c index e4e6d72..eb76cc4 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -696,7 +696,7 @@ static void EvdevProcessSyncEvent(InputInfoPtr pInfo, struct input_event *ev) { int num_v = 0, first_v = 0; - int v[MAX_VALUATORS]; + int v[MAX_VALUATORS] = {}; /* initialize with zeros */ EvdevPtr pEvdev = pInfo->private; EvdevProcessValuators(pInfo, v, &num_v, &first_v);