Skip to content

Commit

Permalink
Crash in case of usage of \line without \include
Browse files Browse the repository at this point in the history
In case thee `line` command is used without previous `\inclide` or `\dontinclude` command doxygen will crash due to a non initialized fd.
We get the message:
warning: No previous '\include' or \dontinclude' command for '\line' present

also a small correcting regarding the warning message is done.
  • Loading branch information
albert-github committed Apr 19, 2019
1 parent cd63af1 commit e148ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/docparser.cpp
Expand Up @@ -2063,7 +2063,7 @@ void DocIncOperator::parse()
if (g_includeFileName.isEmpty())
{
warn_doc_error(g_fileName,doctokenizerYYlineno,
"No previous '\\include' or \\dontinclude' command for '\\%s' present",
"No previous '\\include' or '\\dontinclude' command for '\\%s' present",
typeAsString());
}

Expand Down
2 changes: 1 addition & 1 deletion src/htmldocvisitor.cpp
Expand Up @@ -790,7 +790,7 @@ void HtmlDocVisitor::visit(DocIncOperator *op)
popEnabled();
if (!m_hide)
{
FileDef *fd;
FileDef *fd = NULL;
if (!op->includeFileName().isEmpty())
{
QFileInfo cfi( op->includeFileName() );
Expand Down

0 comments on commit e148ac4

Please sign in to comment.