mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-11 08:21:13 +01:00
17295: `zle -F' failed because of bad test
This commit is contained in:
parent
b2226ac72f
commit
9c8b79b993
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue