mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 00:00:06 +01:00
Coverity #987: Avoid potential NULL dereference.
This commit is contained in:
parent
843146cfba
commit
2c90c3bfef
2 changed files with 7 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
|||
* hw/xfree86/utils/xorgcfg/keyboard-cfg.c:
|
||||
Coverity #1216: Fix double-close of file on error.
|
||||
|
||||
* xkb/xkbEvents.c:
|
||||
Coverity #987: Avoid potential NULL dereference.
|
||||
|
||||
2006-04-06 Keith Packard <keithp@keithp.com>
|
||||
|
||||
* fb/fbstipple.c: (fbEvenStipple):
|
||||
|
|
|
|||
|
|
@ -214,6 +214,10 @@ int i;
|
|||
CARD32 changedControls;
|
||||
|
||||
changedControls= 0;
|
||||
|
||||
if (!kbd || !kbd->kbdfeed)
|
||||
return 0;
|
||||
|
||||
if (old->enabled_ctrls!=new->enabled_ctrls)
|
||||
changedControls|= XkbControlsEnabledMask;
|
||||
if ((old->repeat_delay!=new->repeat_delay)||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue