summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2014-02-26 03:12:51 +0000
committerRichard Trieu <rtrieu@google.com>2014-02-26 03:12:51 +0000
commit634e5b0af2b652d162097c1f532f86ce113d9cc6 (patch)
tree3c745410373460e19a017e41fa4ecaac2372bf31 /lib
parent670c13edcca0cb513e499fe26fb397f5dbee8bb4 (diff)
Remove 'tctx->name' from a logical statement since it is a pointer and always
is converted to a true value. Detected by Clang's improved -Wbool-conversion git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc b/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc
index ddc8dba5d..69b6e13e7 100644
--- a/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc
+++ b/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc
@@ -48,7 +48,7 @@ static uptr get_uid(u32 tid) {
static bool HasName(ThreadContextBase *tctx, void *arg) {
char *name = (char*)arg;
- return (tctx->name && 0 == internal_strcmp(tctx->name, name));
+ return (0 == internal_strcmp(tctx->name, name));
}
static bool HasUid(ThreadContextBase *tctx, void *arg) {