From dd38b9a85195c008cc1462e3b24c333be175efc3 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 22 Nov 2023 03:54:24 +0100 Subject: xshared: Drop needless assignment in --help case Help text printing code does not refer to optarg, so there is no need to assign to it if unset. Signed-off-by: Phil Sutter --- iptables/xshared.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/iptables/xshared.c b/iptables/xshared.c index 5f75a0a5..53e72b7a 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -1527,9 +1527,6 @@ void do_parse(int argc, char *argv[], break; case 'h': - if (!optarg) - optarg = argv[optind]; - /* iptables -p icmp -h */ if (!cs->matches && cs->protocol) xtables_find_match(cs->protocol, -- cgit v1.2.3