File 8291-erts-Fix-unitialized-warning.patch of Package erlang
From 43c92cb4331a15bb39c897004a25d7bb7f34b6e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Fri, 14 Feb 2025 10:28:23 +0100
Subject: [PATCH 01/10] erts: Fix unitialized warning
---
erts/emulator/beam/dist.c | 2 ++
erts/emulator/beam/utils.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c
index cfa857e0df..a48e7cbc3e 100644
--- a/erts/emulator/beam/dist.c
+++ b/erts/emulator/beam/dist.c
@@ -1145,6 +1145,8 @@ void init_dist(void)
{
Eterm *hp_start, *hp, **hpp = NULL, tuple;
Uint sz = 0, *szp = &sz;
+ ERTS_UNDEF(hp, NULL);
+ ERTS_UNDEF(hp_start, NULL);
while (1) {
/*
* Sync with dist_util.erl:
--
2.43.0