projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
5edf438
)
Fix Perl warning
author
Peter Eisentraut
<
[email protected]
>
Sat, 8 Jul 2023 15:24:41 +0000
(17:24 +0200)
committer
Peter Eisentraut
<
[email protected]
>
Sat, 8 Jul 2023 15:27:18 +0000
(17:27 +0200)
Use of uninitialized value $content in concatenation (.) or string
src/test/perl/PostgreSQL/Test/Utils.pm
|
blob
|
blame
|
history
diff --git
a/src/test/perl/PostgreSQL/Test/Utils.pm
b/src/test/perl/PostgreSQL/Test/Utils.pm
index 220cab303c7321ac7009c2612ae9730c1af328cb..617caa022f494f6b7ee08963af65a0a8fa2c2a85 100644
(file)
--- a/
src/test/perl/PostgreSQL/Test/Utils.pm
+++ b/
src/test/perl/PostgreSQL/Test/Utils.pm
@@
-564,7
+564,7
@@
sub string_replace_file
{
my ($filename, $find, $replace) = @_;
open(my $in, '<', $filename);
- my $content;
+ my $content
= ''
;
while (<$in>)
{
$_ =~ s/$find/$replace/;