aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-03 20:33:13 +0200
committerSverker Eriksson <[email protected]>2018-07-18 15:00:25 +0200
commite4d7df2f1e2eba5d5a87b9a57b983cf2e3ea7b25 (patch)
tree841ea465d7d7e53f8e09a0cc0be588bd75f9d562 /lib
parentbd228591a434bd0a15f5220e66a8bb623b410e2f (diff)
downloadotp-e4d7df2f1e2eba5d5a87b9a57b983cf2e3ea7b25.tar.gz
otp-e4d7df2f1e2eba5d5a87b9a57b983cf2e3ea7b25.tar.bz2
otp-e4d7df2f1e2eba5d5a87b9a57b983cf2e3ea7b25.zip
erl_interface: Initialize erl_errno to zero
Makes valgrind happy.
Diffstat (limited to 'lib')
-rw-r--r--lib/erl_interface/src/misc/ei_pthreads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/erl_interface/src/misc/ei_pthreads.c b/lib/erl_interface/src/misc/ei_pthreads.c
index 25608edeec..8b34364659 100644
--- a/lib/erl_interface/src/misc/ei_pthreads.c
+++ b/lib/erl_interface/src/misc/ei_pthreads.c
@@ -206,6 +206,7 @@ volatile int *__erl_errno_place(void)
use_fallback = 1;
return &fallback_errno;
}
+ *erl_errno_p = 0;
if (pthread_setspecific(erl_errno_key, erl_errno_p) != 0 ||
(erl_errno_p = pthread_getspecific(erl_errno_key)) == NULL) {