xkbcomp: Give keymap file empty name if none supplied
Ensure that the keymap file topName is not NULL since it gets blindly dereferenced later.master
parent
125ce76f5b
commit
85039a0d76
|
@ -72,7 +72,8 @@ XkbKeymapFileFromComponents(const XkbComponentNamesPtr ktcsg)
|
|||
geometry = CreateXKBFile(XkmGeometryIndex, NULL, (ParseCommon *)inc, 0);
|
||||
AppendStmt(&keycodes->common, &geometry->common);
|
||||
|
||||
return CreateXKBFile(XkmKeymapFile, ktcsg->keymap, &keycodes->common, 0);
|
||||
return CreateXKBFile(XkmKeymapFile, ktcsg->keymap ? ktcsg->keymap : "",
|
||||
&keycodes->common, 0);
|
||||
}
|
||||
|
||||
static XkbComponentNamesPtr
|
||||
|
|
Loading…
Reference in New Issue