projects
/
tools
/
apitrace.git
/ 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
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\"");