diff options
author | Chris Lumens <clumens@redhat.com> | 2009-10-08 10:36:39 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-10-08 10:36:39 -0400 |
commit | 468586327a4230117a253d64bad9c94d04517e4d (patch) | |
tree | 8503f4d24634486bcafb989cfa35a0c0ce8ad297 /isys | |
parent | f0038d7c169a3ba1a6dce419dd5e415512de4ed0 (diff) | |
download | anaconda-468586327a4230117a253d64bad9c94d04517e4d.tar.gz anaconda-468586327a4230117a253d64bad9c94d04517e4d.tar.xz anaconda-468586327a4230117a253d64bad9c94d04517e4d.zip |
Clear out state before calling XkbGetState.
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c index 8f8a22c0d..3c0c573ad 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -769,6 +769,7 @@ static PyObject * doIsCapsLockEnabled(PyObject * s, PyObject * args) { return NULL; } + memset(&state, 0, sizeof(state)); XkbGetState(d, XkbUseCoreKbd, &state); if (XCloseDisplay(d)) { |