From 2c38f5bba18ce5a17e3598cc8abc5696b2320529 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 10 May 2001 08:52:30 +0000 Subject: barf if a empty string is given as one of the separators for _values (14293) --- Src/Zle/computil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') 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; } -- cgit 1.4.1