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/message.cpp | |
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/message.cpp')
-rw-r--r-- | src/message.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/message.cpp b/src/message.cpp index df0a2dc..8f89c11 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -238,15 +238,15 @@ void printlex(int dbg, bool enter, const char *lexName, const char *fileName) if (dbg) { if (fileName) - fprintf(stderr,"--%s lexical analyzer: %s (for: %s)\n",enter_txt, lexName, fileName); + fprintf(stderr,"--%s lexical analyzer: %s (for: %s)\n",enter_txt, qPrint(lexName), qPrint(fileName)); else - fprintf(stderr,"--%s lexical analyzer: %s\n",enter_txt, lexName); + fprintf(stderr,"--%s lexical analyzer: %s\n",enter_txt, qPrint(lexName)); } else { if (fileName) - Debug::print(Debug::Lex,0,"%s lexical analyzer: %s (for: %s)\n",enter_txt_uc, lexName, fileName); + Debug::print(Debug::Lex,0,"%s lexical analyzer: %s (for: %s)\n",enter_txt_uc, qPrint(lexName), qPrint(fileName)); else - Debug::print(Debug::Lex,0,"%s lexical analyzer: %s\n",enter_txt_uc, lexName); + Debug::print(Debug::Lex,0,"%s lexical analyzer: %s\n",enter_txt_uc, qPrint(lexName)); } } |