2
0
mirror of git://github.com/lxc/lxc synced 2025-08-29 15:19:53 +00:00

coverity: condition already checked for

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Dwight Engen 2013-05-07 10:57:16 -04:00 committed by Stéphane Graber
parent 42fb4b1585
commit 5ca6c34bde

View File

@ -1151,8 +1151,7 @@ static int overlayfs_clonepaths(struct bdev *orig, struct bdev *new, const char
if (strcmp(orig->type, "dir") == 0) { if (strcmp(orig->type, "dir") == 0) {
char *delta; char *delta;
int ret, len; int ret, len;
if (!snap)
return -1;
// if we have /var/lib/lxc/c2/rootfs, then delta will be // if we have /var/lib/lxc/c2/rootfs, then delta will be
// /var/lib/lxc/c2/delta0 // /var/lib/lxc/c2/delta0
delta = strdup(new->dest); delta = strdup(new->dest);