From 04f8e4a343b40104dab0767da98cf78a27f84f95 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 15 Jan 2017 22:14:27 +0100 Subject: [PATCH] Fix Expression '!iface' is always true --- src/client/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5