chiark / gitweb /
udev link-config: add asserts to silence scan-build
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 17 Dec 2013 15:09:52 +0000 (16:09 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 17 Dec 2013 15:09:52 +0000 (16:09 +0100)
src/udev/net/link-config.c

index 1a9d780..9b91d9d 100644 (file)
@@ -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)