diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-08-24 09:25:38 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-08-24 09:25:38 +0000 |
| commit | b70ec86efeef1c3e277f26922ceecfd678939c29 (patch) | |
| tree | d9dafa6f3830216bcc1eefab2bfd662ce3dbcbfb | |
| parent | 15683: completion for links(1) (diff) | |
| download | zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.tar zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.tar.gz zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.tar.bz2 zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.tar.lz zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.tar.xz zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.tar.zst zsh-b70ec86efeef1c3e277f26922ceecfd678939c29.zip | |
test if hash table pointer is NULL to avoid SEGV with compstate=() (15705)
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/Zle/complete.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2001-08-24 Sven Wischnowsky <wischnow@zsh.org> + + * 15705: Src/Zle/complete.c: test if hash table pointer is NULL + to avoid SEGV with compstate=() + 2001-08-22 Clint Adams <clint@zsh.org> * 15683: Completion/Unix/Command/.distfiles, diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index f9a160bb7..cd78796c9 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -1072,6 +1072,9 @@ set_compstate(Param pm, HashTable ht) struct value v; char *str; + if (!ht) + return; + for (i = 0; i < ht->hsize; i++) for (hn = ht->nodes[i]; hn; hn = hn->next) for (cp = compkparams, |
