From 50f8fa972c3795a115e7faff0b4c140b40eab5f0 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 21 Nov 2018 10:10:03 +0000 Subject: 43837 plus test from Daniel: Empty string in nested subst. Skip Nularg or there is a bogus character at the start. --- Src/subst.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src') diff --git a/Src/subst.c b/Src/subst.c index c706b9688..ff6750a59 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2405,6 +2405,8 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags, aspar = 0; } else if (aspar) idbeg = val; + if (*val == Nularg) + ++val; *s = sav; /* * This tests for the second double quote in an expression -- cgit 1.4.1