summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/udev/net/link-config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 1a9d780a67..9b91d9d145 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -152,6 +152,9 @@ static int load_link(link_config_ctx *ctx, const char *filename) {
_cleanup_fclose_ FILE *file;
int r;
+ assert(ctx);
+ assert(filename);
+
file = fopen(filename, "re");
if (!file) {
if (errno == ENOENT)