File 0424-erts-Silence-CodeChecker-in-erts_sys_ddll_load_nif_i.patch of Package erlang
From 5bd4c45d4b7d20dfcae518ce2f9f3af6e57cf74c Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Tue, 9 Feb 2021 18:37:50 +0100
Subject: [PATCH 24/34] erts: Silence CodeChecker in
erts_sys_ddll_load_nif_init
---
erts/emulator/sys/unix/erl_unix_sys_ddll.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/erts/emulator/sys/unix/erl_unix_sys_ddll.c b/erts/emulator/sys/unix/erl_unix_sys_ddll.c
index 8f1ceac883..60fc371cd7 100644
--- a/erts/emulator/sys/unix/erl_unix_sys_ddll.c
+++ b/erts/emulator/sys/unix/erl_unix_sys_ddll.c
@@ -169,6 +169,7 @@ int erts_sys_ddll_sym2(void *handle, const char *func_name, void **function,
sym = dlsym(handle, func_name);
if ((e = dlerror()) != NULL) {
ret = ERL_DE_DYNAMIC_ERROR_OFFSET - find_errcode(e, err);
+ ASSERT(ret != ERL_DE_NO_ERROR);
} else {
*function = sym;
ret = ERL_DE_NO_ERROR;
--
2.26.2