summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-17 16:09:52 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-17 16:09:52 +0100
commit187dc6e554f2d5b4b5a3bee72c73ff5df6418aa6 (patch)
treede2940229d341a7bc648740348a130a8f51e5991 /src/udev
parent6a70535669f9016056c1ad8bcb21e1fd14c2141a (diff)
udev link-config: add asserts to silence scan-build
Diffstat (limited to 'src/udev')
-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)