Don't log null device name in XkbDDXLoadKeymapByNames

This commit is contained in:
Alan Coopersmith 2008-06-25 15:06:49 -07:00
parent cbc20d92de
commit 7ce6dcef11

View File

@ -351,7 +351,7 @@ unsigned missing;
(names->compat==NULL)&&(names->symbols==NULL)&&
(names->geometry==NULL)) {
LogMessage(X_ERROR, "XKB: No components provided for device %s\n",
keybd->name);
keybd->name ? keybd->name : "(unnamed keyboard)");
return 0;
}
else if (!XkbDDXCompileKeymapByNames(xkb,names,want,need,