From 62798e72b5f1d1bdcbf5213190f3938f609b306a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 16 Feb 2010 13:28:20 +0000 Subject: [PATCH] Fix NULL string dumping. Spotted by Michal Krol. --- log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.cpp b/log.cpp index c917fe3..a42cee9 100644 --- a/log.cpp +++ b/log.cpp @@ -326,7 +326,7 @@ void EndReference(void) { void DumpString(const char *str) { const unsigned char *p = (const unsigned char *)str; if (!str) { - Log::Text("L\""); + Log::Text("NULL"); return; } Log::Text("\""); @@ -362,7 +362,7 @@ void DumpString(const char *str) { void DumpWString(const wchar_t *str) { const wchar_t *p = str; if (!str) { - Log::Text("L\""); + Log::Text("NULL"); return; } Log::Text("L\""); -- 2.7.4