xkb: fix typo in sizeof expression

XkbExtensionDeviceNotify is an int (#define'd to 11)
xkbExtensionDeviceNotify is a typedef for a struct, and is used
in sizeof in all the other memset calls in this file.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2363>
This commit is contained in:
Alan Coopersmith 2026-10-17 14:31:30 -07:00 • committed by Marge Bot
commit 0c69071611

View file

@ -808,7 +808,7 @@ XkbFlushLedEvents(DeviceIntPtr dev,
XkbDDXUpdateDeviceIndicators(dev, sli, sli->effectiveState);
XkbSendExtensionDeviceNotify(dev, cause->client, ed);
}
memset((char *) ed, 0, sizeof(XkbExtensionDeviceNotify));
memset((char *) ed, 0, sizeof(xkbExtensionDeviceNotify));
}
return;
}