networkd: we should not loop when extract_first_word() fails
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Jul 2020 14:21:34 +0000 (16:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Jul 2020 14:32:34 +0000 (16:32 +0200)
commit1f68f77292a9581dd77be9a0bd279c1430cbd130
tree0d0a0da6972cf0352aa7f86bcac86ca6fa71a253
parent8dc647fd305d23380cb1b1a9123e31f0fcc9a4e9
networkd: we should not loop when extract_first_word() fails

While at it, define iterator in the loop to reduce the indentation a bit.
src/network/networkd-link.c