Commit 3147ddbf authored by Erkki Seppälä's avatar Erkki Seppälä Committed by Ulrich Sibiller

Variable "entry" tracked as NULL was dereferenced.

Check entry for non-nullness before dereferencing it Reviewed-by: 's avatarDirk Wallenstein <halsmit@t-online.de> Reviewed-by: 's avatarAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: 's avatarErkki Seppälä <erkki.seppala@vincit.fi> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent e1755878
......@@ -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;
}
}
......
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