Commit 2c90c3bf authored by Daniel Stone's avatar Daniel Stone

Coverity #987: Avoid potential NULL dereference.

parent 843146cf
......@@ -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)||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment