Skip to content

Commit 35aa15f

Browse files
authored
Merge pull request #7 from albert-github/feature/bug_uninit_var
Fix for some uninitialized variables
2 parents 1a05529 + 913b796 commit 35aa15f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,12 @@ sub ProcessFile
286286
{
287287
if ($sIncludeModule eq "base")
288288
{
289-
my @isa = eval($expr);
290-
push(@{$self->GetCurrentClass()->{inherits}}, _FilterOutSystemPackages(@isa)) unless ($@);
289+
if (substr($expr,0,8) =~ /\"require/) { }
290+
else
291+
{
292+
my @isa = eval($expr);
293+
push(@{$self->GetCurrentClass()->{inherits}}, _FilterOutSystemPackages(@isa)) unless ($@);
294+
}
291295
}
292296
else
293297
{
@@ -444,7 +448,12 @@ sub PrintAll
444448
# ----------------------------------------
445449
# Private Methods
446450
# ----------------------------------------
447-
sub _FilterOutSystemPackages { return grep({ !exists $SYSTEM_PACKAGES{$_} } @_); }
451+
sub _FilterOutSystemPackages
452+
{
453+
if (!defined($_)) { return @_};
454+
return grep({ !exists $SYSTEM_PACKAGES{$_} } @_);
455+
}
456+
448457

449458
sub _SwitchClass
450459
{

0 commit comments

Comments
 (0)