diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-08 22:09:11 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-08 22:09:11 +0930 |
commit | ea05cf0813b2b7c8cd2151cb935820753ae7997a (patch) | |
tree | ebde776b6f76f612c5ccf915f6e28ad1277c81a5 /Xi/exevents.c | |
parent | 6271df6953bea462be7e9e01744e5dd46841e867 (diff) |
Xi: check if source has a key class before copying.
Diffstat (limited to 'Xi/exevents.c')
-rw-r--r-- | Xi/exevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index 225d3e524..757d57a23 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -378,7 +378,7 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to) } ALLOC_COPY_CLASS_IF(key, KeyClassRec); - if (to->key) + if (to->key && from->key) { #ifdef XKB to->key->xkbInfo = NULL; |