about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2002-06-05 21:12:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2002-06-05 21:12:08 +0000
commit9c8b79b993057c8a146016e734eeb72571ea413d (patch)
tree43ff8c6d6aa0c936eab140eb2c3b4898beb63d24
parentb2226ac72f5f4c5202f44ff3c35bbf4a864e1ab9 (diff)
downloadzsh-9c8b79b993057c8a146016e734eeb72571ea413d.tar.gz
zsh-9c8b79b993057c8a146016e734eeb72571ea413d.tar.xz
zsh-9c8b79b993057c8a146016e734eeb72571ea413d.zip
17295: `zle -F' failed because of bad test
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_thingy.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c5a52d9e..a5329b348 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-06-05  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
+	* 17295: Src/Zle/zle_thingy.c: `zle -F' could fail because
+	it examined non-existent arguments.
+
 	* 17294: Src/Modules/tcp.c: remove session even if closing fd
 	failed; remove builtin from hash table when unloading module.
 
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index 7cf558f97..2aef7ecd4 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -697,7 +697,7 @@ bin_zle_fd(char *name, char **args, char *ops, char func)
 
     if (ops['L'] || !*args) {
 	/* Listing handlers. */
-	if (args[1]) {
+	if (*args && args[1]) {
 	    zwarnnam(name, "too many arguments for -FL", NULL, 0);
 	    return 1;
 	}