From 288b15d0793936fa14b51ed860056f6ce6200c52 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Thu, 22 Jun 2017 08:26:27 -0400 Subject: Replace malloc+memset with calloc, mostly by using the new ezalloc macro. --- eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 73bd7fc9..c5fea5ee 100644 --- a/eval.c +++ b/eval.c @@ -1269,8 +1269,7 @@ setup_frame(INSTRUCTION *pc) sp = frame_ptr->stack; } else if (pcount > 0) { - emalloc(sp, NODE **, pcount * sizeof(NODE *), "setup_frame"); - memset(sp, 0, pcount * sizeof(NODE *)); + ezalloc(sp, NODE **, pcount * sizeof(NODE *), "setup_frame"); } -- cgit v1.2.3 From 44e29458a6355ad64e8d89676a441b224ce76cbc Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 23 Jun 2017 12:36:13 +0300 Subject: Fix parenthesization in the pretty printer for real (we hope!). --- eval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'eval.c') diff --git a/eval.c b/eval.c index c5fea5ee..afa37891 100644 --- a/eval.c +++ b/eval.c @@ -381,6 +381,7 @@ static struct optypetab { { "Op_K_else", "else" }, { "Op_K_function", "function" }, { "Op_cond_exp", NULL }, + { "Op_parens", NULL }, { "Op_final --- this should never appear", NULL }, { NULL, NULL }, }; -- cgit v1.2.3