diff options
-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; } |