mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-20 06:52:44 +00:00
udev link-config: add asserts to silence scan-build
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user