From 9298e8df39132fd0b18904661958dc7c9c678091 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Sat, 14 Mar 2020 11:12:00 -0700 Subject: [PATCH] Pass get_vm to allocCon Prevents null dereference crash Fixes #4 --- Array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Array.c b/Array.c index b36a471..17bfb54 100644 --- a/Array.c +++ b/Array.c @@ -3,7 +3,7 @@ VAL idris_makeArray(int len) { VAL arr; - allocCon(arr, 0, 0, len, 0); + allocCon(arr, get_vm(), 0, len, 0); return arr; }