Silence compiler warning by memsetting the struct properly.

(cherry picked from commit 0ab4c09e50)
This commit is contained in:
Peter Hutterer
2008-10-23 14:05:41 +10:30
parent fa18a4a38d
commit 09b2a5e87b

View File

@@ -672,9 +672,11 @@ EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl)
};
InputInfoPtr pInfo;
struct input_event ev[ArrayLength(bits)] = {0};
struct input_event ev[ArrayLength(bits)];
int i;
memset(ev, 0, sizeof(ev));
pInfo = device->public.devicePrivate;
for (i = 0; i < ArrayLength(bits); i++) {
ev[i].type = EV_LED;