summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-04-09 17:28:42 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-04-09 17:28:42 +0000
commitf324be00c547effc698ae6679d12ffe90bd90e43 (patch)
treeceee89e2619f402f08a21667b124d6f9ff021cf1 /xkb
parent7637aa17f21e26d979fbb210a638d6751c98b1eb (diff)
Coverity #324: Fix potential NULL dereference. (Alan Coopersmith)
Diffstat (limited to 'xkb')
-rw-r--r--xkb/XKBMAlloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xkb/XKBMAlloc.c b/xkb/XKBMAlloc.c
index 6c47db03c..ce79ef090 100644
--- a/xkb/XKBMAlloc.c
+++ b/xkb/XKBMAlloc.c
@@ -305,6 +305,7 @@ XkbClientMapPtr map;
tmp= XkbNumRequiredTypes+1;
if (XkbAllocClientMap(xkb,XkbKeyTypesMask,tmp)!=Success)
return NULL;
+ map = xkb->map;
tmp= 0;
if (map->num_types<=XkbKeypadIndex)
tmp|= XkbKeypadMask;