Skip to content

Commit

Permalink
coverity: #1425789
Browse files Browse the repository at this point in the history
Unchecked return value from library

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jun 15, 2018
1 parent 0311439 commit 71261a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lxc/lxccontainer.c
Expand Up @@ -2693,7 +2693,10 @@ static bool mod_rdep(struct lxc_container *c0, struct lxc_container *c, bool inc
if (stat(path, &fbuf) < 0)
goto out;
if (!fbuf.st_size) {
remove(path);
ret = remove(path);
if (ret < 0)
SYSERROR("Failed to remove \"%s\"", path);

}
}

Expand Down

0 comments on commit 71261a5

Please sign in to comment.