Skip to content

Commit 6ab3aab

Browse files
authored
Merge pull request #5 from albert-github/feature/bug_uninit_sOptions
Uninitialized value $sOptions
2 parents d0c7353 + 69e3f38 commit 6ab3aab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,17 @@ sub _ProcessDoxygenCommentBlock
824824
$sCommandLine =~ /^\s*#\*\*\s+\@([\w:]+)\s+(.*)/;
825825
my $sCommand = lc($1);
826826
my $sOptions = $2;
827+
if (!defined($sOptions))
828+
{
829+
# Lets check special case with a '.' or ',' e.g @winchhooks.
830+
$sCommandLine =~ /^\s*#\*\*\s+\@([\w:]+)([\.,].*)/;
831+
$sCommand = lc($1);
832+
$sOptions = "";
833+
if (defined($2))
834+
{
835+
$sOptions = "$2";
836+
}
837+
}
827838
$logger->debug("Command: $sCommand");
828839
$logger->debug("Options: $sOptions");
829840

0 commit comments

Comments
 (0)