btrfs-progs: fix btrfs_get_subvol cut/paste error
authorEric Sandeen <sandeen@redhat.com>
Mon, 25 Feb 2013 22:54:35 +0000 (16:54 -0600)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 13:39:15 +0000 (14:39 +0100)
commit220e1ccd87de6983f58a7ea23a8ca62ae8df0df2
treedbb5ec14d1bd45821541c36698ced4834d635623
parentefbbbc88cbee3f28c6b4a4c34623e13dc1e2e700
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>
btrfs-list.c