From: Michael Vrable Date: Wed, 12 Dec 2007 18:42:37 +0000 (-0800) Subject: Fix uninitialized variable warning in sample restore program. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=618f744b4f63484cecd41e9dfba21f51d65bef1f;p=cumulus.git Fix uninitialized variable warning in sample restore program. --- 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);