Skip to content

Commit 9c4b9c6

Browse files
committed
Fix typo in error message
1 parent e6ca02c commit 9c4b9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/Apkv3.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ sub verifydatasection {
375375
my $ctx;
376376
$ctx = Digest::SHA->new(256) if length($file->{'hash'}) == 32;
377377
$ctx = Digest::SHA->new(512) if length($file->{'hash'}) == 64;
378-
die("unsupported file hashn") unless $file->{'hash'};
378+
die("unsupported file hash\n") unless $ctx;
379379
my ($datatype, $datasize, $datapad) = read_blk_header($fd);
380380
die("missing data block\n") unless $datatype == 2;
381381
die("data size mismatch\n") unless $datasize == 8 + $file->{'size'};

0 commit comments

Comments
 (0)