csirac2 / snazzer

btrfs snapshotting and backup system offering snapshot measurement, transport and pruning.
BSD 2-Clause "Simplified" License
89 stars 9 forks source link

snazzer-prune throws uninitialized value error on empty input #19

Open csirac2 opened 9 years ago

csirac2 commented 9 years ago

Related bug: #10. user-submitted:

when doing a dry-run on our system with no snapshots the snazzer-prune-candidates command called by snazzer would throw an error about “Use of uninitialized value” on line 512 (Which is my $top = $parsed->{ $sorted[0] }; - Once we had created our first snapshots this problem went away but it’s something you might want to know.