summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-14 08:36:33 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-14 08:36:33 +0000
commit5bec88ec0f0668b0efb99ed84beba5aff12ad8cf (patch)
tree5b5a5929bb607904b8bad8938fe3f621c01d637d /regress/lib
parent35e6c8b4848dfeb126187f98162ab0a697beda14 (diff)
init a variable to avoid spurious failure
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libpthread/cancel_wait/cancel_wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libpthread/cancel_wait/cancel_wait.c b/regress/lib/libpthread/cancel_wait/cancel_wait.c
index 9b627512f11..eb5ca3db678 100644
--- a/regress/lib/libpthread/cancel_wait/cancel_wait.c
+++ b/regress/lib/libpthread/cancel_wait/cancel_wait.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cancel_wait.c,v 1.1 2015/09/14 08:02:59 guenther Exp $ */
+/* $OpenBSD: cancel_wait.c,v 1.2 2015/09/14 08:36:32 guenther Exp $ */
/* PUBLIC DOMAIN <marc@snafu.org> */
/*
@@ -52,7 +52,7 @@ int
main(int argc, char *argv[])
{
pthread_t thread;
- void *ret;
+ void *ret = NULL;
child = fork();
if (child == -1)