options_array_item_value cannot return NULL.

This commit is contained in:
nicm
2019-04-25 19:36:59 +00:00
parent a609e6361a
commit 2d65bbd941
5 changed files with 3 additions and 18 deletions

View File

@ -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);
}
}