From: Alexis La Goutte Date: Sun, 15 Jan 2017 21:14:27 +0000 (+0100) Subject: Fix Expression '!iface' is always true X-Git-Tag: 0.9.6~6^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04f8e4a343b40104dab0767da98cf78a27f84f95;p=thirdparty%2Flldpd.git Fix Expression '!iface' is always true --- diff --git a/src/client/commands.c b/src/client/commands.c index 7fd4d55a..beedbf1a 100644 --- a/src/client/commands.c +++ b/src/client/commands.c @@ -753,7 +753,7 @@ cmd_iterate_on_ports(struct lldpctl_conn_t *conn, struct cmd_env *env, const cha last_port = lldpctl_get_port(iface); return last_port; } - if (!iface && !interfaces) { + if (!interfaces) { put_default = 1; *name = "(default)"; last_port = lldpctl_get_default_port(conn);