summaryrefslogtreecommitdiff
path: root/Src/math.c
diff options
context:
space:
mode:
authorMartijn Dekker <martijn@inlv.org>2018-12-25 17:18:57 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2018-12-30 18:03:02 +0000
commit4215fcb1075f4608cf039ae9b593b07580060a70 (patch)
tree2586b5122d62b4715afdd0a14fb1866d0b20b6d1 /Src/math.c
parentd0f92b448e74206a08ee2718d74766b9e9ddd349 (diff)
downloadzsh-4215fcb1075f4608cf039ae9b593b07580060a70.tar.gz
zsh-4215fcb1075f4608cf039ae9b593b07580060a70.zip
43944: apply NO_UNSET consistently to arithmeitc
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c2
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;