From 618f744b4f63484cecd41e9dfba21f51d65bef1f Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 12 Dec 2007 10:42:37 -0800 Subject: [PATCH] Fix uninitialized variable warning in sample restore program. --- contrib/restore.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1