[systemd-commits] src/network
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Mon Dec 16 09:59:13 PST 2013
src/network/networkd-bridge.c | 3 +++
src/network/networkd-network.c | 3 +++
2 files changed, 6 insertions(+)
New commits:
commit bf1bc6701574f5e935fafc3163659372abdcde63
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Dec 16 18:55:59 2013 +0100
network: more asserts to shut up scan-build
diff --git a/src/network/networkd-bridge.c b/src/network/networkd-bridge.c
index 2c54146..ed0d692 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 ae8d4d1..80c952a 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)
More information about the systemd-commits
mailing list