projects
/
apitrace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82b589b
)
Fix NULL string dumping.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 16 Feb 2010 13:28:20 +0000
(13:28 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 12 Nov 2010 18:47:59 +0000
(18:47 +0000)
Spotted by Michal Krol.
log.cpp
patch
|
blob
|
history
diff --git
a/log.cpp
b/log.cpp
index c917fe3e751d85ffae719e862cac7d1e332d9fba..a42cee901100c31f14cf7f09b1978d8b58de7251 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\"");