aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-12 15:51:11 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:24 +0200
commit3147ddbf47897688b61e95c18f255cbd8ccc0532 (patch)
treeaa05fe087406e6b840573f104f92b970c095985e /nx-X11/lib
parente175587865ccd01f1771f61cc05735158c8ba6df (diff)
downloadnx-libs-3147ddbf47897688b61e95c18f255cbd8ccc0532.tar.gz
nx-libs-3147ddbf47897688b61e95c18f255cbd8ccc0532.tar.bz2
nx-libs-3147ddbf47897688b61e95c18f255cbd8ccc0532.zip
Variable "entry" tracked as NULL was dereferenced.
Check entry for non-nullness before dereferencing it Reviewed-by: Dirk Wallenstein <halsmit@t-online.de> Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib')
-rw-r--r--nx-X11/lib/X11/XKB.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/XKB.c b/nx-X11/lib/X11/XKB.c
index 008609608..a62e24282 100644
--- a/nx-X11/lib/X11/XKB.c
+++ b/nx-X11/lib/X11/XKB.c
@@ -462,7 +462,7 @@ XkbKTMapEntryPtr entry = NULL;
if (map_rtrn!=NULL) {
bzero(map_rtrn,type->mods.mask+1);
for (i=0;i<type->map_count;i++) {
- if (entry->active) {
+ if (entry && entry->active) {
map_rtrn[type->map[i].mods.mask]= type->map[i].level;
}
}