Skip to content

Commit 69dbbf8

Browse files
committed
Uninitialized variable
Another uninitialized variable: ``` Use of uninitialized value $inherit in concatenation (.) or string at /usr/lib/perl5/site_perl/5.18.2/Doxygen/Filter/Perl.pm line 595. ```
1 parent a86bc66 commit 69dbbf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,11 @@ sub _PrintClassBlock
584584
my $count = 0;
585585
foreach my $inherit (@{$classDef->{inherits}})
586586
{
587-
print(($count++ == 0 ? ": " : ", ")." public ::".$inherit);
587+
if (defined($inherit))
588+
{
589+
print(($count++ == 0 ? ": " : ", ")." public ::".$inherit);
590+
}
591+
588592
}
589593
}
590594
print "\n{\n";

0 commit comments

Comments
 (0)