From 9c8b79b993057c8a146016e734eeb72571ea413d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 5 Jun 2002 21:12:08 +0000 Subject: 17295: `zle -F' failed because of bad test --- ChangeLog | 3 +++ Src/Zle/zle_thingy.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c5a52d9e..a5329b348 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-06-05 Peter Stephenson + * 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; } -- cgit 1.4.1