aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2019-04-25 19:36:59 +0000
committernicm <nicm>2019-04-25 19:36:59 +0000
commit2d65bbd94129c4542394a83151cb1a131c3c7871 (patch)
tree0020978c837b96ad83516e47ff5f3974a2b22649 /tty-keys.c
parenta609e6361a2dd9a7ec6d9dd8dfd80d86d38c033b (diff)
downloadrtmux-2d65bbd94129c4542394a83151cb1a131c3c7871.tar.gz
rtmux-2d65bbd94129c4542394a83151cb1a131c3c7871.tar.bz2
rtmux-2d65bbd94129c4542394a83151cb1a131c3c7871.zip
options_array_item_value cannot return NULL.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tty-keys.c b/tty-keys.c
index c6dcbb56..850c9119 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -429,8 +429,7 @@ tty_keys_build(struct tty *tty)
a = options_array_first(o);
while (a != NULL) {
ov = options_array_item_value(a);
- if (ov != NULL)
- tty_keys_add(tty, ov->string, KEYC_USER + i);
+ tty_keys_add(tty, ov->string, KEYC_USER + i);
a = options_array_next(a);
}
}