Skip to content

Commit 69e3f38

Browse files
committed
Uninitialized value $sOptions
We need a second test in case the second match isn't fulfilled either. Example: ``` sub subr { ## @baz; } ```
1 parent a3ecdd3 commit 69e3f38

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
@@ -827,7 +827,11 @@ sub _ProcessDoxygenCommentBlock
827827
# Lets check special case with a '.' or ',' e.g @winchhooks.
828828
$sCommandLine =~ /^\s*#\*\*\s+\@([\w:]+)([\.,].*)/;
829829
$sCommand = lc($1);
830-
$sOptions = "$2";
830+
$sOptions = "";
831+
if (defined($2))
832+
{
833+
$sOptions = "$2";
834+
}
831835
}
832836
$logger->debug("Command: $sCommand");
833837
$logger->debug("Options: $sOptions");

0 commit comments

Comments
 (0)