Regular code path doesn't hit this because the conversion to
libnftnl_rule takes care of it already. Future changes though will cause
iptables_command_state objects to be printed directly, making this
relevant.
Signed-off-by: Phil Sutter <phil@nwl.cc>
static void print_iface(const char *option, const char *name, bool invert)
{
- if (*name)
+ if (*name && (strcmp(name, "+") || invert))
printf("%s%s %s ", invert ? "! " : "", option, name);
}