This nit was discovered when comparing do_commandeb() with
do_commandeb_xlate(): Since 'cs' is initialized upon declaration
already, initialization of field '.eb.bitmask' may be moved there as
well.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
struct xtables_match *m;
struct iptables_command_state cs = {
.argv = argv,
+ .eb.bitmask = EBT_NOPROTO,
};
char command = 'h';
const char *chain = NULL;
/* prevent getopt to spoil our error reporting */
optind = 0;
opterr = false;
- cs.eb.bitmask = EBT_NOPROTO;
/* Getopt saves the day */
while ((c = getopt_long(argc, argv,