networkctl: fix error message

This commit is contained in:
Yu Watanabe
2019-10-24 14:20:48 +09:00
parent 882e21c72f
commit d56d6cb8ca
+2 -1
View File
@@ -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];