summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Jin Park <sj76.park@samsung.com>2018-10-30 14:09:22 +0900
committerSung-Jin Park <sj76.park@samsung.com>2018-10-30 14:09:22 +0900
commit819b06d4ee1e216126802fb1426886e656d95bb6 (patch)
tree61af2a897e9ecc9b441a6d629dc58ab9a7562d2e
parentdd1bdd0fabce13acea50a5e7c53e525f007304bf (diff)
downloadlibxkbcommon-819b06d4ee1e216126802fb1426886e656d95bb6.tar.gz
libxkbcommon-819b06d4ee1e216126802fb1426886e656d95bb6.tar.bz2
libxkbcommon-819b06d4ee1e216126802fb1426886e656d95bb6.zip
Change-Id: I77edf8922955477bc815f374a7def7d76d82e11e Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
-rw-r--r--src/xkbcomp/keycodes.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/xkbcomp/keycodes.c b/src/xkbcomp/keycodes.c
index 7f5955e..8cd838c 100644
--- a/src/xkbcomp/keycodes.c
+++ b/src/xkbcomp/keycodes.c
@@ -596,14 +596,13 @@ CopyKeyAliasesToKeymap(struct xkb_keymap *keymap, KeyNamesInfo *info)
key_aliases = calloc(num_key_aliases, sizeof(*key_aliases));
if (!key_aliases)
return false;
- }
-
- i = 0;
- darray_foreach(alias, info->aliases) {
- if (alias->real != XKB_ATOM_NONE) {
- key_aliases[i].alias = alias->alias;
- key_aliases[i].real = alias->real;
- i++;
+ i = 0;
+ darray_foreach(alias, info->aliases) {
+ if (alias->real != XKB_ATOM_NONE) {
+ key_aliases[i].alias = alias->alias;
+ key_aliases[i].real = alias->real;
+ i++;
+ }
}
}