diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-04-25 19:37:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-04-25 19:37:00 +0000 |
commit | 83d0562ddfd20cee3ae28eda48eb1753f9b84abf (patch) | |
tree | d7124bad8aae9021cba0a9b3cdd22b5492361d06 /usr.bin/tmux/tty-keys.c | |
parent | 264aa85995159ad9250c3a7e673cd7176348de2a (diff) |
options_array_item_value cannot return NULL.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 00d11350b43..e7bb79471f1 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.109 2019/04/23 20:40:03 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.110 2019/04/25 19:36:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); } } |