summaryrefslogtreecommitdiff
path: root/test/tsan/strerror_r.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/strerror_r.cc')
-rw-r--r--test/tsan/strerror_r.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tsan/strerror_r.cc b/test/tsan/strerror_r.cc
index 06c92d3bb..ad4820130 100644
--- a/test/tsan/strerror_r.cc
+++ b/test/tsan/strerror_r.cc
@@ -11,7 +11,8 @@
char buffer[1000];
void *Thread(void *p) {
- return strerror_r(TEST_ERROR, buffer, sizeof(buffer));
+ strerror_r(TEST_ERROR, buffer, sizeof(buffer));
+ return buffer;
}
int main() {