tsan: fix compiler warning
error: address of array 'tctx->name' will always evaluate to 'true' llvm-svn: 202008
This commit is contained in:
parent
8587f0ca99
commit
249cd9af9c
|
|
@ -212,7 +212,7 @@ void ScopedReport::AddThread(const ThreadContext *tctx) {
|
||||||
rt->id = tctx->tid;
|
rt->id = tctx->tid;
|
||||||
rt->pid = tctx->os_id;
|
rt->pid = tctx->os_id;
|
||||||
rt->running = (tctx->status == ThreadStatusRunning);
|
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->parent_tid = tctx->parent_tid;
|
||||||
rt->stack = 0;
|
rt->stack = 0;
|
||||||
#ifdef TSAN_GO
|
#ifdef TSAN_GO
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue