diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-02-25 16:54:35 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-02-27 14:39:15 +0100 |
commit | 220e1ccd87de6983f58a7ea23a8ca62ae8df0df2 (patch) | |
tree | dbb5ec14d1bd45821541c36698ced4834d635623 /btrfs-show-super.c | |
parent | efbbbc88cbee3f28c6b4a4c34623e13dc1e2e700 (diff) |
btrfs-progs: fix btrfs_get_subvol cut/paste error
in btrfs_get_subvol(), there is a cut and paste error:
if (ri->full_path)
the_ri->full_path = strdup(ri->full_path);
else
the_ri->name = NULL;
It should be setting the_ri->full_path to NULL here.
Do it in a function instead of the cpoy & paste to avoid future
errors.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'btrfs-show-super.c')
0 files changed, 0 insertions, 0 deletions