From ea8a3df08310f2b29ceb468bfadf3bbac181e1f1 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Mon, 16 Jul 2012 23:30:54 +0900 Subject: [PATCH] using 0 for final array value initialization instead of NULL --- tools/chibi-ffi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/chibi-ffi b/tools/chibi-ffi index 48fceac7..be05088e 100755 --- a/tools/chibi-ffi +++ b/tools/chibi-ffi @@ -970,7 +970,7 @@ ";\n" " }\n") (if (not (number? (type-array a))) - (cat " tmp" (type-index a) "[i] = NULL;\n"))) + (cat " tmp" (type-index a) "[i] = 0;\n"))) ((and (type-result? a) (not (basic-type? a)) (not (type-free? a)) ;;(not (type-pointer? a)) (not (type-reference? a))