about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-10 08:52:30 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-10 08:52:30 +0000
commit2c38f5bba18ce5a17e3598cc8abc5696b2320529 (patch)
treefac5708f427404ec58d0fd3cdc693b6833ab34f8 /Src/Zle
parent16af95b1200fecb7b46940c39ca375b48c0fcdb2 (diff)
downloadzsh-2c38f5bba18ce5a17e3598cc8abc5696b2320529.tar.gz
zsh-2c38f5bba18ce5a17e3598cc8abc5696b2320529.tar.xz
zsh-2c38f5bba18ce5a17e3598cc8abc5696b2320529.zip
barf if a empty string is given as one of the separators for _values (14293)
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/computil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 72ec4d9e6..d7d44f999 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -2096,7 +2096,7 @@ parse_cvdef(char *nam, char **args)
 
     while (args[0][0] == '-' && (args[0][1] == 's' || args[0][1] == 'S') &&
            !args[0][2]) {
-	if (args[1][0] && args[1][1]) {
+	if (!args[1][0] || (args[1][0] && args[1][1])) {
 	    zwarnnam(nam, "invalid separator: %s", args[1], 0);
 	    return NULL;
 	}