about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 	}