Fix NULL string dumping.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 16 Feb 2010 13:28:20 +0000 (13:28 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 12 Nov 2010 18:47:59 +0000 (18:47 +0000)
Spotted by Michal Krol.

log.cpp

diff --git a/log.cpp b/log.cpp
index c917fe3..a42cee9 100644 (file)
--- 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\"");