network: more asserts to shut up scan-build

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2013-12-16 18:55:59 +01:00
parent e0d4864438
commit bf1bc67015
2 changed files with 6 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)