projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99d2f4a
)
xkbcomp: Don't dereference NULL VarDefsPtr
author
Dan Nicholson
<dbn.lists@gmail.com>
Sat, 4 Apr 2009 19:17:50 +0000
(12:17 -0700)
committer
Dan Nicholson
<dbn.lists@gmail.com>
Sat, 4 Apr 2009 19:17:50 +0000
(12:17 -0700)
src/xkbcomp/xkbcomp.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/xkbcomp.c
b/src/xkbcomp/xkbcomp.c
index
4adb4be
..
3cfde6a
100644
(file)
--- a/
src/xkbcomp/xkbcomp.c
+++ b/
src/xkbcomp/xkbcomp.c
@@
-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;
}