network: change condition in if testing section presence
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 Feb 2017 14:34:25 +0000 (09:34 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 Feb 2017 14:34:25 +0000 (09:34 -0500)
commit48317c39e26a203dc62d1f707263c75a79f89259
tree7e7bea28184a1b0b751351df8a5a70be1b1c6fbb
parentfd45e522dd8b6cbfdff32eee1f272a97080387ea
network: change condition in if testing section presence

section_line and filename should be set together or not at all. Change the
if to test filename, since it's the first of the pair and it seems more natural
to test that.
src/network/networkd-address.c
src/network/networkd-route.c