Coverity #987: Avoid potential NULL dereference.
This commit is contained in:
parent
843146cfba
commit
2c90c3bfef
|
@ -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…
Reference in New Issue
Block a user