summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-25 19:36:59 +0000
committernicm <nicm@openbsd.org>2019-04-25 19:36:59 +0000
commitdbd67d4e4dce0a64cf63d7004b590066b12dd34d (patch)
treefdd165cdb0942ddef563ede60ea1d87f52c95e8e /usr.bin/tmux/cmd.c
parentNeed a fallback for -2 for aixterm colours. (diff)
downloadwireguard-openbsd-dbd67d4e4dce0a64cf63d7004b590066b12dd34d.tar.xz
wireguard-openbsd-dbd67d4e4dce0a64cf63d7004b590066b12dd34d.zip
options_array_item_value cannot return NULL.
Diffstat (limited to 'usr.bin/tmux/cmd.c')
-rw-r--r--usr.bin/tmux/cmd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c
index 15ca4f0ca27..335279c5aa9 100644
--- a/usr.bin/tmux/cmd.c
+++ b/usr.bin/tmux/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.143 2019/04/23 20:36:55 nicm Exp $ */
+/* $OpenBSD: cmd.c,v 1.144 2019/04/25 19:36:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -335,10 +335,6 @@ cmd_try_alias(int *argc, char ***argv)
a = options_array_first(o);
while (a != NULL) {
ov = options_array_item_value(a);
- if (ov == NULL) {
- a = options_array_next(a);
- continue;
- }
cp = strchr(ov->string, '=');
if (cp != NULL &&
(size_t)(cp - ov->string) == wanted &&