diff options
author | albert-github <albert.tests@gmail.com> | 2019-04-19 16:27:10 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-04-19 16:27:10 (GMT) |
commit | e148ac40cb0c5dee845f0a43c4c644dac1efc6a1 (patch) | |
tree | 1efaf47cd83c365908e5947cd0b4d2ddf603034a | |
parent | cd63af1e16e6194da328d95a81b546e27b873e78 (diff) | |
download | Doxygen-e148ac40cb0c5dee845f0a43c4c644dac1efc6a1.zip Doxygen-e148ac40cb0c5dee845f0a43c4c644dac1efc6a1.tar.gz Doxygen-e148ac40cb0c5dee845f0a43c4c644dac1efc6a1.tar.bz2 |
Crash in case of usage of \line without \include
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.
-rw-r--r-- | src/docparser.cpp | 2 | ||||
-rw-r--r-- | src/htmldocvisitor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 1c8479b..27d18f3 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -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()); } diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 37f6bd0..a45e2a7 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -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() ); |