diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-22 03:54:24 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-23 17:59:42 +0100 |
commit | dd38b9a85195c008cc1462e3b24c333be175efc3 (patch) | |
tree | 785d578c8c6a7a66403746848ad1744efd36e9bf /iptables/xshared.c | |
parent | 9a9ff768cab58aea02828e422184873e52e9846a (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.c')
-rw-r--r-- | iptables/xshared.c | 3 |
1 files changed, 0 insertions, 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, |