summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-04-06 09:41:40 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-04-06 09:41:40 (GMT)
commit0831c71c05c9204839e187759f13303e64783730 (patch)
tree8a196bd8de51c681c6a714a27ba1480107065256 /src/pre.l
parent39ba42c3b21d08ec606eee18ee8b64c67ec6a42a (diff)
downloadDoxygen-0831c71c05c9204839e187759f13303e64783730.zip
Doxygen-0831c71c05c9204839e187759f13303e64783730.tar.gz
Doxygen-0831c71c05c9204839e187759f13303e64783730.tar.bz2
Guarded debug prints against printing a NULL pointer.
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index ab2ad6f..e56b8ab 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1618,11 +1618,11 @@ static void readIncludeFile(const QCString &inc)
{
if (alreadyIncluded)
{
- Debug::print(Debug::Preprocessor,0,"#include %s: already included! skipping...\n",incFileName.data());
+ Debug::print(Debug::Preprocessor,0,"#include %s: already included! skipping...\n",qPrint(incFileName));
}
else
{
- Debug::print(Debug::Preprocessor,0,"#include %s: not found! skipping...\n",incFileName.data());
+ Debug::print(Debug::Preprocessor,0,"#include %s: not found! skipping...\n",qPrint(incFileName));
}
//printf("error: include file %s not found\n",yytext);
}
@@ -3199,7 +3199,7 @@ void preprocessFile(const char *fileName,BufStr &input,BufStr &output)
Define *def;
for (di.toFirst();(def=di.current());++di)
{
- Debug::print(Debug::Preprocessor,0,"%s ",def->name.data());
+ Debug::print(Debug::Preprocessor,0,"%s ",qPrint(def->name));
}
Debug::print(Debug::Preprocessor,0,"\n---------\n");
}