mirror of
https://github.com/curl/curl.git
synced 2026-05-30 10:37:28 +03:00
scripts: fix two Perl uninitialized value warnings
```
Use of uninitialized value $errors in exit at .github/scripts/badwords.pl line 87.
Use of uninitialized value $o in concatenation (.) or string at ../.github/scripts/randcurl.pl line 99.
```
Follow-up to 2ec54556d4 #17877
Cherry-picked from #18042
Closes #18047
This commit is contained in:
parent
fd2ca2399e
commit
7509854824
2 changed files with 2 additions and 2 deletions
2
.github/scripts/badwords.pl
vendored
2
.github/scripts/badwords.pl
vendored
|
|
@ -40,7 +40,7 @@ while(<STDIN>) {
|
|||
}
|
||||
}
|
||||
|
||||
my $errors;
|
||||
my $errors = 0;
|
||||
|
||||
sub file {
|
||||
my ($f) = @_;
|
||||
|
|
|
|||
2
.github/scripts/randcurl.pl
vendored
2
.github/scripts/randcurl.pl
vendored
|
|
@ -92,7 +92,7 @@ sub randarg {
|
|||
"0123456789".
|
||||
",-?#$%!@ ";
|
||||
my $len = getnum(20);
|
||||
my $o;
|
||||
my $o = '';
|
||||
for (1 .. $len) {
|
||||
$o .= substr($nice, getnum(length($nice)), 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue