From 3f3d80c394134cae020c49420917eb34a456ff68 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 22 Oct 2010 16:32:36 +0000 Subject: 28360: NO_UNSET option should check parameters with trailing options --- Src/subst.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Src/subst.c') diff --git a/Src/subst.c b/Src/subst.c index cace51e8c..5f65945a5 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2649,8 +2649,14 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) } getmatcharr(&aval, s, flags, flnum, replstr); } else { - if (vunset) + if (vunset) { + if (unset(UNSET)) { + *idend = '\0'; + zerr("%s: parameter not set", idbeg); + return NULL; + } val = dupstring(""); + } if (!copied) { val = dupstring(val); copied = 1; -- cgit 1.4.1