xkbcomp: Don't dereference NULL VarDefsPtr
parent
99d2f4a5eb
commit
fdd8a9ec1b
|
@ -117,7 +117,7 @@ XkbcCompileKeymapFromRules(const char *rules, XkbRF_VarDefsPtr defs)
|
|||
XkbComponentNamesPtr names;
|
||||
XkbcDescPtr xkb;
|
||||
|
||||
if (ISEMPTY(rules) || ISEMPTY(defs->layout)) {
|
||||
if (ISEMPTY(rules) || !defs || ISEMPTY(defs->layout)) {
|
||||
ERROR("rules and layout required to generate XKB keymap\n");
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue