summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/tools_sanity_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index 2f758e2..ab2d197 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -36,7 +36,7 @@ TEST(ToolsSanityTest, MemoryLeak) {
}
void ReadUninitializedValue(char *ptr) {
- if (*ptr == true) {
+ if (*ptr == '\0') {
(*ptr)++;
} else {
(*ptr)--;