tsan: fix compiler warning

error: address of array 'tctx->name' will always evaluate to 'true'

llvm-svn: 202008
This commit is contained in:
Dmitry Vyukov 2014-02-24 08:19:53 +00:00
parent 8587f0ca99
commit 249cd9af9c
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ void ScopedReport::AddThread(const ThreadContext *tctx) {
rt->id = tctx->tid;
rt->pid = tctx->os_id;
rt->running = (tctx->status == ThreadStatusRunning);
rt->name = tctx->name ? internal_strdup(tctx->name) : 0;
rt->name = internal_strdup(tctx->name);
rt->parent_tid = tctx->parent_tid;
rt->stack = 0;
#ifdef TSAN_GO