Skip to content

Commit 8619a29

Browse files
authored
Merge pull request #8 from albert-github/feature/bug_uninit_var2
Uninitialized variable
2 parents 35aa15f + 69dbbf8 commit 8619a29

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
@@ -593,7 +593,11 @@ sub _PrintClassBlock
593593
my $count = 0;
594594
foreach my $inherit (@{$classDef->{inherits}})
595595
{
596-
print(($count++ == 0 ? ": " : ", ")." public ::".$inherit);
596+
if (defined($inherit))
597+
{
598+
print(($count++ == 0 ? ": " : ", ")." public ::".$inherit);
599+
}
600+
597601
}
598602
}
599603
print "\n{\n";

0 commit comments

Comments
 (0)