From 2d65bbd94129c4542394a83151cb1a131c3c7871 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 25 Apr 2019 19:36:59 +0000 Subject: options_array_item_value cannot return NULL. --- cmd.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index cf1f7496..8ed6596c 100644 --- a/cmd.c +++ b/cmd.c @@ -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 && -- cgit