btrfs-progs: receive: use static buffer for cur_subvol
authorDavid Sterba <dsterba@suse.cz>
Fri, 12 Jun 2015 13:40:07 +0000 (15:40 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 12 Jun 2015 14:44:48 +0000 (16:44 +0200)
commit230ab9376c721a9349ed6997e404afd059ac9247
treed69468e33050a88bc68ec7e495fa1df05a894500
parent6a039e5063fc96cc72a0a0b2bdc97403fb080de1
btrfs-progs: receive: use static buffer for cur_subvol

Get rid of the allocation. The logic is changed so that a NULL
cur_subvol::path means that no subvolume/snapshot has been found so far.

Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-receive.c