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
|
@ -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…
Reference in New Issue
Block a user