X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=contrib%2Frestore.pl;h=556297445e11187b44b8c19d80dd922eafc31d5d;hb=910255ec7fb85ef6c7b9515e9761892ca408c389;hp=f9c55ce06320dbe63e7434661819a59ae3e7ac12;hpb=ab51d5778a1f19c204c935de231737df2e62c20c;p=cumulus.git diff --git a/contrib/restore.pl b/contrib/restore.pl index f9c55ce..5562974 100755 --- a/contrib/restore.pl +++ b/contrib/restore.pl @@ -128,7 +128,7 @@ sub load_ref { my $object_size = length $contents; my ($start, $length); - if ($1 ne "") { + if (defined($1)) { ($start, $length) = ($2 + 0, $3 + 0); } else { ($start, $length) = (0, $3 + 0);