From ec3ffa2bd15ec4de255422f8c2a53c8697aeea64 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 9 Oct 2021 12:13:42 -0700 Subject: [PATCH] prints: remove variable shadowing of 'expr' global --- lib/expr/exeval.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/expr/exeval.c b/lib/expr/exeval.c index c89211e57..5e6608077 100644 --- a/lib/expr/exeval.c +++ b/lib/expr/exeval.c @@ -367,14 +367,11 @@ prformat(void* vp, Sffmt_t* dp) /* * print a list of strings */ - -static int -prints(Expr_t * ex, Exnode_t * expr, void *env, Sfio_t * sp) -{ +static int prints(Expr_t *ex, Exnode_t *exnode, void *env, Sfio_t *sp) { Extype_t v; Exnode_t *args; - args = expr->data.operand.left; + args = exnode->data.operand.left; while (args) { v = eval(ex, args->data.operand.left, env); sfputr(sp, v.string, -1); -- 2.40.0