uterm: input: uxkb: fix compile error in string_to_keysym()
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 5 Sep 2012 17:50:00 +0000 (19:50 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 5 Sep 2012 17:50:00 +0000 (19:50 +0200)
Damnit, already pushed and not noticed this bug. Anyway, this fixes the
obvious typo in uxkb module.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_input_uxkb.c

index a73937a..6b9a6a5 100644 (file)
@@ -298,11 +298,11 @@ int uxkb_string_to_keysym(const char *n, uint32_t *out)
 
        /* TODO: fix xkbcommon upstream to be case-insensitive if case-sensitive
         * match fails. */
-       sym = xkb_keysym_from_name(n);
-       if (!sym)
+       keysym = xkb_keysym_from_name(n);
+       if (!keysym)
                return -EFAULT;
 
-       *out = sym;
+       *out = keysym;
        return 0;
 }