summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ports/unix/coverage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c
index 59fcf55245..7169c7793b 100644
--- a/ports/unix/coverage.c
+++ b/ports/unix/coverage.c
@@ -149,6 +149,9 @@ STATIC int pairheap_lt(mp_pairheap_t *a, mp_pairheap_t *b) {
// ops array contain operations: x>=0 means push(x), x<0 means delete(-x)
STATIC void pairheap_test(size_t nops, int *ops) {
mp_pairheap_t node[8];
+ for (size_t i = 0; i < MP_ARRAY_SIZE(node); ++i) {
+ mp_pairheap_init_node(pairheap_lt, &node[i]);
+ }
mp_pairheap_t *heap = mp_pairheap_new(pairheap_lt);
printf("create:");
for (size_t i = 0; i < nops; ++i) {