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 1a9d780a67bca80b16f4362774001efaef67a307..9b91d9d145884f98b778467de76c97d66f20a248 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)