mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-07 13:20:32 +01:00
XKB: Fix garbage initialization
XkbEnableDisableControls set extra garbage bits on the xkbControlsNotify changedControls mask because it was uninitialized on the stack. Found by clang Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commit e081ef1d26c03a38da58f1eacf21ebe8fff5a7d9)
This commit is contained in:
parent
49a2b55e0e
commit
8faac273d3
1 changed files with 1 additions and 1 deletions
|
|
@ -753,7 +753,7 @@ XkbSrvLedInfoPtr sli;
|
|||
if (cause!=NULL) {
|
||||
xkbControlsNotify cn;
|
||||
cn.numGroups= ctrls->num_groups;
|
||||
cn.changedControls|= XkbControlsEnabledMask;
|
||||
cn.changedControls= XkbControlsEnabledMask;
|
||||
cn.enabledControls= ctrls->enabled_ctrls;
|
||||
cn.enabledControlChanges= (ctrls->enabled_ctrls^old);
|
||||
cn.keycode= cause->kc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue