diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-12-16 18:55:59 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-12-16 18:55:59 +0100 |
commit | bf1bc6701574f5e935fafc3163659372abdcde63 (patch) | |
tree | 5fd642e87c4d581bf2e1501d2a3dd11754b285f4 /src | |
parent | e0d48644381dcf0a6c684be6ed4201ca9b4a338c (diff) |
network: more asserts to shut up scan-build
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-bridge.c | 3 | ||||
-rw-r--r-- | src/network/networkd-network.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-bridge.c b/src/network/networkd-bridge.c index 2c541463ec..ed0d692992 100644 --- a/src/network/networkd-bridge.c +++ b/src/network/networkd-bridge.c @@ -246,6 +246,9 @@ static int bridge_load_one(Manager *manager, const char *filename) { _cleanup_fclose_ FILE *file = NULL; int r; + assert(manager); + assert(filename); + file = fopen(filename, "re"); if (!file) { if (errno == ENOENT) diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index ae8d4d160d..80c952a55b 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -30,6 +30,9 @@ static int network_load_one(Manager *manager, const char *filename) { _cleanup_fclose_ FILE *file = NULL; int r; + assert(manager); + assert(filename); + file = fopen(filename, "re"); if (!file) { if (errno == ENOENT) |