diff options
author | Naman Dixit <ndixit26@gmail.com> | 2017-05-27 09:15:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 09:15:26 +0000 |
commit | 4f17fc6005e9c379901030bdc2065fae91add08f (patch) | |
tree | 555144ce68da56334543f3a22c208d442d0d8f6a | |
parent | ca12d2fdd336e913e9b352537fcfa65ea10a9447 (diff) | |
download | xorg-lib-libxkbcommon-4f17fc6005e9c379901030bdc2065fae91add08f.tar.gz |
Fixed a minor bug in error detection in Wayland test
-rw-r--r-- | test/interactive-wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/interactive-wayland.c b/test/interactive-wayland.c index c28fbb6..6fd57b8 100644 --- a/test/interactive-wayland.c +++ b/test/interactive-wayland.c @@ -345,7 +345,7 @@ kbd_keymap(void *data, struct wl_keyboard *wl_kbd, uint32_t format, } seat->state = xkb_state_new(seat->keymap); - if (!seat->keymap) { + if (!seat->state) { fprintf(stderr, "Failed to create XKB state!\n"); return; } |