From 38331dc35ede1eab8bc73ead966a54b1d60afd39 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 14 Dec 2021 23:23:56 +0100 Subject: [PATCH] Berry yet another fix --- lib/libesp32/berry/src/be_map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libesp32/berry/src/be_map.c b/lib/libesp32/berry/src/be_map.c index 37f9efc62..e425a09f5 100644 --- a/lib/libesp32/berry/src/be_map.c +++ b/lib/libesp32/berry/src/be_map.c @@ -203,6 +203,7 @@ static void resize(bvm *vm, bmap *map, int size) slots = be_malloc(vm, datasize(size)); for (i = 0; i < size; ++i) { setnil(slots + i); + next(slots + i) = LASTNODE; } map->size = size; map->slots = slots;