Skip to content

Commit

Permalink
fixup! erts: Fix unitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Feb 17, 2025
1 parent 0735369 commit 1ce52ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erts/emulator/beam/dist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ void init_dist(void)
am_erts_internal, am_spawn_request_yield,
3, spawn_request_yield_3);
{
Eterm *hp_start, *hp, **hpp = NULL, tuple;
Eterm *hp_start, *ERTS_UNDEF(hp, NULL), **hpp = NULL, tuple;
Uint sz = 0, *szp = &sz;
while (1) {
struct erl_off_heap_header **ohp;
Expand Down
2 changes: 1 addition & 1 deletion erts/emulator/beam/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ Sint compare_flatmap_atom_keys(const Eterm* a_keys,
Eterm min_key = THE_NON_VALUE;
Eterm a, b;
int ai, bi;
Sint res = 0;
Sint ERTS_UNDEF(res, 0);

ASSERT(n_atoms > 0);
ASSERT(is_atom(a_keys[0]) && is_atom(b_keys[0]));
Expand Down

0 comments on commit 1ce52ba

Please sign in to comment.