Coverity #324: Fix potential NULL dereference. (Alan Coopersmith)
This commit is contained in:
parent
7637aa17f2
commit
f324be00c5
|
@ -6,6 +6,9 @@
|
||||||
* xkb/ddxList.c:
|
* xkb/ddxList.c:
|
||||||
Coverity #169: Fix potential fgets() into NULL (?!?).
|
Coverity #169: Fix potential fgets() into NULL (?!?).
|
||||||
|
|
||||||
|
* xkb/XKBMAlloc.c:
|
||||||
|
Coverity #324: Fix potential NULL dereference. (Alan Coopersmith)
|
||||||
|
|
||||||
2006-04-07 Aaron Plattner <aplattner@nvidia.com>
|
2006-04-07 Aaron Plattner <aplattner@nvidia.com>
|
||||||
|
|
||||||
* hw/xfree86/common/xf86Module.h:
|
* hw/xfree86/common/xf86Module.h:
|
||||||
|
|
|
@ -305,6 +305,7 @@ XkbClientMapPtr map;
|
||||||
tmp= XkbNumRequiredTypes+1;
|
tmp= XkbNumRequiredTypes+1;
|
||||||
if (XkbAllocClientMap(xkb,XkbKeyTypesMask,tmp)!=Success)
|
if (XkbAllocClientMap(xkb,XkbKeyTypesMask,tmp)!=Success)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
map = xkb->map;
|
||||||
tmp= 0;
|
tmp= 0;
|
||||||
if (map->num_types<=XkbKeypadIndex)
|
if (map->num_types<=XkbKeypadIndex)
|
||||||
tmp|= XkbKeypadMask;
|
tmp|= XkbKeypadMask;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user