diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-08 17:59:55 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-08 17:59:55 +0100 |
commit | 965e601bb3231f2a3e97d6faf04febc61cec8ba8 (patch) | |
tree | 8058d52979645fc3e31d791a798cfe49b6991704 | |
parent | fa5bd1281c3c7500104a7ca15795e6448819f391 (diff) |
dgit: avoid "Use of uninitialized value $got in concatenation"
When dgit wanted to report that a file it downloaded had the wrong
checksum, it would instead crash with this message. This was due to
complete_file_from_dsc's $got (which is relied on by the callers of
$checkhash) being shadowed inside $checkhash.
This is part of #867185/#867185.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2519,7 +2519,7 @@ sub complete_file_from_dsc ($$;$) { $fi->{Digester}->reset(); $fi->{Digester}->addfile(*F); F->error and die $!; - my $got = $fi->{Digester}->hexdigest(); + $got = $fi->{Digester}->hexdigest(); return $got eq $fi->{Hash}; }; |