aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-04-23 23:02:42 +0100
committerThomas Adam <thomas@xteddy.org>2019-04-23 23:02:42 +0100
commitc86936613366fe1a0d7a4a2d4ae628d04cd3b866 (patch)
tree88c945ce503cb9df4332904d5887d68b8b843fde /tty-keys.c
parentb0d7623b7eb4409eedde0583be6ed831b287d278 (diff)
parentb9022e33eac0152850ae59be99b54cccc10f4c63 (diff)
downloadrtmux-c86936613366fe1a0d7a4a2d4ae628d04cd3b866.tar.gz
rtmux-c86936613366fe1a0d7a4a2d4ae628d04cd3b866.tar.bz2
rtmux-c86936613366fe1a0d7a4a2d4ae628d04cd3b866.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 7557eca0..c6dcbb56 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -399,9 +399,10 @@ tty_keys_build(struct tty *tty)
const struct tty_default_key_raw *tdkr;
const struct tty_default_key_code *tdkc;
u_int i;
- const char *s, *value;
+ const char *s;
struct options_entry *o;
struct options_array_item *a;
+ union options_value *ov;
if (tty->key_tree != NULL)
tty_keys_free(tty);
@@ -427,9 +428,9 @@ tty_keys_build(struct tty *tty)
if (o != NULL) {
a = options_array_first(o);
while (a != NULL) {
- value = options_array_item_value(a);
- if (value != NULL)
- tty_keys_add(tty, value, KEYC_USER + i);
+ ov = options_array_item_value(a);
+ if (ov != NULL)
+ tty_keys_add(tty, ov->string, KEYC_USER + i);
a = options_array_next(a);
}
}