From: Naman Dixit Date: Sat, 27 May 2017 09:15:26 +0000 (+0000) Subject: Fixed a minor bug in error detection in Wayland test X-Git-Tag: xkbcommon-0.8.0~38^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f17fc6005e9c379901030bdc2065fae91add08f;p=platform%2Fupstream%2Flibxkbcommon.git Fixed a minor bug in error detection in Wayland test --- 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; }