diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-06 09:41:40 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-04-06 09:41:40 (GMT) |
commit | 0831c71c05c9204839e187759f13303e64783730 (patch) | |
tree | 8a196bd8de51c681c6a714a27ba1480107065256 /src/commentscan.l | |
parent | 39ba42c3b21d08ec606eee18ee8b64c67ec6a42a (diff) | |
download | Doxygen-0831c71c05c9204839e187759f13303e64783730.zip Doxygen-0831c71c05c9204839e187759f13303e64783730.tar.gz Doxygen-0831c71c05c9204839e187759f13303e64783730.tar.bz2 |
Guarded debug prints against printing a NULL pointer.
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index a85358c..23fd34a 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -2915,7 +2915,7 @@ bool parseCommentBlock(/* in */ ParserInterface *parser, } Debug::print(Debug::CommentScan,0,"-----------\nCommentScanner: %s:%d\n" - "input=[\n%s]\n",fileName.data(),lineNr,comment.data() + "input=[\n%s]\n",qPrint(fileName),lineNr,qPrint(comment) ); commentscanYYrestart( commentscanYYin ); @@ -2962,9 +2962,9 @@ bool parseCommentBlock(/* in */ ParserInterface *parser, Debug::print(Debug::CommentScan,0, "brief=[line=%d\n%s]\ndocs=[line=%d\n%s]\ninbody=[line=%d\n%s]\n===========\n", - current->briefLine,current->brief.data(), - current->docLine,current->doc.data(), - current->inbodyLine,current->inbodyDocs.data() + current->briefLine,qPrint(current->brief), + current->docLine,qPrint(current->doc), + current->inbodyLine,qPrint(current->inbodyDocs) ); checkFormula(); |