diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-05-10 08:52:30 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-05-10 08:52:30 +0000 |
commit | 2c38f5bba18ce5a17e3598cc8abc5696b2320529 (patch) | |
tree | fac5708f427404ec58d0fd3cdc693b6833ab34f8 | |
parent | 16af95b1200fecb7b46940c39ca375b48c0fcdb2 (diff) | |
download | zsh-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)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/computil.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index e63adee0b..4c46881a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-05-10 Sven Wischnowsky <wischnow@zsh.org> + + * 14293: Src/Zle/computil.c: barf if a empty string is given as + one of the separators for _values + 2001-05-09 Bart Schaefer <schaefer@zsh.org> * unposted: configure.in: Clean up 14275+14290 a bit at Andrej's 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; } |