udev link-config: add asserts to silence scan-build

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2013-12-17 16:09:52 +01:00
parent 6a70535669
commit 187dc6e554
+3
View 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)