summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
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/util.cpp
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/util.cpp')
-rw-r--r--src/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index a550a2f..9bb1632 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -7521,7 +7521,7 @@ bool readInputFile(const char *fileName,BufStr &inBuf,bool filter,bool isSourceC
else
{
QCString cmd=filterName+" \""+fileName+"\"";
- Debug::print(Debug::ExtCmd,0,"Executing popen(`%s`)\n",cmd.data());
+ Debug::print(Debug::ExtCmd,0,"Executing popen(`%s`)\n",qPrint(cmd));
FILE *f=portable_popen(cmd,"r");
if (!f)
{
@@ -7539,7 +7539,7 @@ bool readInputFile(const char *fileName,BufStr &inBuf,bool filter,bool isSourceC
portable_pclose(f);
inBuf.at(inBuf.curPos()) ='\0';
Debug::print(Debug::FilterOutput, 0, "Filter output\n");
- Debug::print(Debug::FilterOutput,0,"-------------\n%s\n-------------\n",inBuf.data());
+ Debug::print(Debug::FilterOutput,0,"-------------\n%s\n-------------\n",qPrint(inBuf));
}
int start=0;