mirror of
https://github.com/systemd/systemd.git
synced 2025-01-28 21:47:38 +03:00
udev link-config: add asserts to silence scan-build
This commit is contained in:
parent
6a70535669
commit
187dc6e554
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user