diff options
author | Martijn Dekker <martijn@inlv.org> | 2018-12-25 17:18:57 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2018-12-30 18:03:02 +0000 |
commit | 4215fcb1075f4608cf039ae9b593b07580060a70 (patch) | |
tree | 2586b5122d62b4715afdd0a14fb1866d0b20b6d1 /Src/math.c | |
parent | d0f92b448e74206a08ee2718d74766b9e9ddd349 (diff) | |
download | zsh-4215fcb1075f4608cf039ae9b593b07580060a70.tar.gz zsh-4215fcb1075f4608cf039ae9b593b07580060a70.tar.xz zsh-4215fcb1075f4608cf039ae9b593b07580060a70.zip |
43944: apply NO_UNSET consistently to arithmeitc
Diffstat (limited to 'Src/math.c')
-rw-r--r-- | Src/math.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/math.c b/Src/math.c index b08e05cb4..a38770073 100644 --- a/Src/math.c +++ b/Src/math.c @@ -342,6 +342,8 @@ getmathparam(struct mathvalue *mptr) mptr->pval = (Value)zhalloc(sizeof(struct value)); if (!getvalue(mptr->pval, &s, 1)) { + if (unset(UNSET)) + zerr("%s: parameter not set", mptr->lval); mptr->pval = NULL; if (isset(FORCEFLOAT)) { result.type = MN_FLOAT; |