From: Yu Watanabe Date: Sun, 8 Sep 2019 09:32:54 +0000 (+0900) Subject: networkctl: fix error message X-Git-Tag: v244-rc1~164^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d56d6cb8cab19ec042efc8987a1684bbc4157328;p=thirdparty%2Fsystemd.git networkctl: fix error message --- diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 5f90e49db04..64778d6e847 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -1759,7 +1759,8 @@ static int link_delete(int argc, char *argv[], void *userdata) { } SET_FOREACH(p, indexes, j) { - r = link_delete_send_message(rtnl, PTR_TO_INT(p)); + index = PTR_TO_INT(p); + r = link_delete_send_message(rtnl, index); if (r < 0) { char ifname[IF_NAMESIZE + 1];