Skip to content

Commit

Permalink
Fix typo I introduced in the bdev change.
Browse files Browse the repository at this point in the history
When adding the missing return value in Caglar's change (as discussed on
the mailing-list), I set err = -1 instead or ret = -1, causing an
obvious build failure...

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
stgraber committed Mar 3, 2014
1 parent 385e8e8 commit e27141f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/bdev.c
Expand Up @@ -1365,7 +1365,7 @@ static int btrfs_same_fs(const char *orig, const char *new) {
fd_new = open(new, O_RDONLY);
if (fd_new < 0) {
SYSERROR("Error opening new container dir %s", new);
err = -1;
ret = -1;
goto out;
}
ret = ioctl(fd_new, BTRFS_IOC_FS_INFO, &new_args);
Expand Down

0 comments on commit e27141f

Please sign in to comment.