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:45:27 -0400 |
commit | adef01a75661a82796426a9523e753dded93387d (patch) | |
tree | 58fe5375d0f9ecd4a2a0f113d603bb3ff3225bf8 | |
parent | a30e9195d1e5c268fbcdeb1a1a54f14fbc62f839 (diff) | |
download | anaconda-adef01a75661a82796426a9523e753dded93387d.tar.gz anaconda-adef01a75661a82796426a9523e753dded93387d.tar.xz anaconda-adef01a75661a82796426a9523e753dded93387d.zip |
Clear out state before calling XkbGetState.
-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)) { |