File 1106-erl_db.c-Ensure-initialization-in-debug-build.patch of Package erlang
From abfcabc5e8a1d224c2daf135808a81bb034d0245 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Thu, 28 Jan 2021 08:34:39 +0100
Subject: [PATCH 3/4] erl_db.c: Ensure initialization in debug build
---
erts/emulator/beam/erl_db.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/erts/emulator/beam/erl_db.c b/erts/emulator/beam/erl_db.c
index c80d987471..0392ba04c1 100644
--- a/erts/emulator/beam/erl_db.c
+++ b/erts/emulator/beam/erl_db.c
@@ -1387,6 +1387,9 @@ do_update_counter(Process *p, DbTable* tb,
hend = hstart + halloc_size;
}
else {
+#ifdef DEBUG
+ ret = THE_NON_VALUE;
+#endif
hstart = htop = HAlloc(p, halloc_size);
}
hend = hstart + halloc_size;
--
2.26.2