diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index faa5ed374..070cbba9b 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1976,9 +1976,10 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), tc = 0; /* but don't do a normal conversion */ } } else if (!setsecondstype(pm, on, off)) { - if (value && !setsparam(pname, ztrdup(value))) + if (value && !(pm = setsparam(pname, ztrdup(value)))) return NULL; - return pm; + usepm = 1; + err = 0; } } if (err) |