mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-31 03:04:49 +01:00
barf if a empty string is given as one of the separators for _values (14293)
This commit is contained in:
parent
16af95b120
commit
2c38f5bba1
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue