summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-12-04 14:57:25 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-04 14:59:54 -0800
commit1371b73b4b31b8c057acfc836f08aa2ce2d1f368 (patch)
treec7780408fa8ffd75419a332b83c0fd43646c4ff7 /test/syscalls
parent4b198b18e1757ab6606c6d885ae62027d37d3651 (diff)
Initialize has_tid for correctness.
PiperOrigin-RevId: 345763209
Diffstat (limited to 'test/syscalls')
-rw-r--r--test/syscalls/linux/signalfd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/signalfd.cc b/test/syscalls/linux/signalfd.cc
index 389e5fca2..c86cd2755 100644
--- a/test/syscalls/linux/signalfd.cc
+++ b/test/syscalls/linux/signalfd.cc
@@ -126,7 +126,7 @@ TEST_P(SignalfdTest, Blocking) {
// Shared tid variable.
absl::Mutex mu;
- bool has_tid;
+ bool has_tid = false;
pid_t tid;
// Start a thread reading.