about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-01-16 20:35:29 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-01-16 20:35:29 +0000
commit4f9ee790e0d9f0b3915c2769e0e48c6a7cd8f353 (patch)
treede3e8d76c30ce9a5382940368ba4238f295ba542 /Src/params.c
parent53da3d57252d68367ebcc7eec00d2db9256747f7 (diff)
downloadzsh-4f9ee790e0d9f0b3915c2769e0e48c6a7cd8f353.tar.gz
zsh-4f9ee790e0d9f0b3915c2769e0e48c6a7cd8f353.tar.xz
zsh-4f9ee790e0d9f0b3915c2769e0e48c6a7cd8f353.zip
28630: Ricky Zhou: fix crash with isident()
28634: add test
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/params.c b/Src/params.c
index 8510b92dc..ba6cd6365 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1009,6 +1009,8 @@ isident(char *s)
      * definitely not a valid identifier.         */
     if (!*ss)
 	return 1;
+    if (s == ss)
+	return 0;
     if (*ss != '[')
 	return 0;