about summary refs log tree commit diff
path: root/Src/math.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-11-29 12:07:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-11-29 12:07:04 +0000
commitcebe5f1d10418b6fc7dec0eab5bfe5d62bd0bb74 (patch)
tree3a2fad7df6935f8d0ddda343fd58450173b07f32 /Src/math.c
parent9a68e6425b05949d69461de291dba0f0b2f88c16 (diff)
downloadzsh-cebe5f1d10418b6fc7dec0eab5bfe5d62bd0bb74.tar.gz
zsh-cebe5f1d10418b6fc7dec0eab5bfe5d62bd0bb74.tar.xz
zsh-cebe5f1d10418b6fc7dec0eab5bfe5d62bd0bb74.zip
20592: Debian bug#283358: $((##)) failed erratically
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/math.c b/Src/math.c
index ce316414e..acf7bdd11 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -451,6 +451,10 @@ zzlex(void)
 		    int v;
 
 		    ptr++;
+		    if (!*ptr) {
+			zerr("character missing after ##", NULL, 0);
+			return EOI;
+		    }
 		    ptr = getkeystring(ptr, NULL, 6, &v);
 		    yyval.u.l = v;
 		    return NUM;