Skip to content

Commit 6ee01e2

Browse files
committed
Fix Perl warning
Use of uninitialized value $content in concatenation (.) or string
1 parent 5edf438 commit 6ee01e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/PostgreSQL/Test/Utils.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ sub string_replace_file
564564
{
565565
my ($filename, $find, $replace) = @_;
566566
open(my $in, '<', $filename);
567-
my $content;
567+
my $content = '';
568568
while (<$in>)
569569
{
570570
$_ =~ s/$find/$replace/;

0 commit comments

Comments
 (0)