mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 19:07:06 +00:00
coverity: #1425789
Unchecked return value from library Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
77f948545c
commit
dc509bf252
@ -2625,7 +2625,10 @@ static bool mod_rdep(struct lxc_container *c0, struct lxc_container *c, bool inc
|
|||||||
n = fscanf(f1, "%d", &v);
|
n = fscanf(f1, "%d", &v);
|
||||||
fclose(f1);
|
fclose(f1);
|
||||||
if (n == 1 && v == 0) {
|
if (n == 1 && v == 0) {
|
||||||
remove(path);
|
ret = remove(path);
|
||||||
|
if (ret < 0)
|
||||||
|
ERROR("%s - Failed to remove \"%s\"",
|
||||||
|
strerror(errno), path);
|
||||||
n = 0;
|
n = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user