A new user interface for you! Read more...

File 0365-erl_interface-Initialize-erl_errno-to-zero.patch of Package erlang

From e4d7df2f1e2eba5d5a87b9a57b983cf2e3ea7b25 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Tue, 3 Jul 2018 20:33:13 +0200
Subject: [PATCH 5/7] erl_interface: Initialize erl_errno to zero

Makes valgrind happy.
---
 lib/erl_interface/src/misc/ei_pthreads.c | 1 +
 1 file changed, 1 insertion(+)

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) {
-- 
2.16.4