mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-15 22:08:46 +02:00
xkb: fix uninitialised warning
Fix uninitialised warning with memset(); we never actually use it uninitialised, but gcc doesn't know that.
This commit is contained in:
parent
b6d7b537ed
commit
d585b4189a
1 changed files with 4 additions and 0 deletions
|
|
@ -868,6 +868,10 @@ XkbStateRec old;
|
|||
unsigned mods,mask,oldCoreState = 0,oldCorePrevState = 0;
|
||||
xkbDeviceInfoPtr xkbPrivPtr = XKBDEVICEINFO(xkbi->device);
|
||||
|
||||
/* never actually used uninitialised, but gcc isn't smart enough
|
||||
* to work that out. */
|
||||
memset(&old, 0, sizeof(old));
|
||||
|
||||
if ((filter->keycode!=0)&&(filter->keycode!=keycode))
|
||||
return 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue