Coverity #987: Avoid potential NULL dereference.

This commit is contained in:
Daniel Stone 2006-04-07 15:57:17 +00:00
parent 843146cfba
commit 2c90c3bfef
2 changed files with 7 additions and 0 deletions

View File

@ -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):

View File

@ -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)||