mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 20:28:01 +02:00
Coverity #209: Fix potential NULL dereference. (Alan Coopersmith)
This commit is contained in:
parent
2481b767ae
commit
b6771501fe
1 changed files with 2 additions and 0 deletions
|
|
@ -319,6 +319,8 @@ XkbClientMapPtr map;
|
|||
tmp= XkbNumRequiredTypes+1;
|
||||
if (XkbAllocClientMap(xkb,XkbKeyTypesMask,tmp)!=Success)
|
||||
return NULL;
|
||||
if (!map)
|
||||
map = xkb->map;
|
||||
tmp= 0;
|
||||
if (map->num_types<=XkbKeypadIndex)
|
||||
tmp|= XkbKeypadMask;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue