mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
network: more asserts to shut up scan-build
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user