diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2003-02-27 11:32:44 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-02-27 11:32:44 +0000 |
| commit | e0d2c9c0b344778492260552e2c8c9bde1526077 (patch) | |
| tree | 82e8d74d86d48213cf36084dbd9b978382cb2a56 | |
| parent | correct typo from recent change (diff) | |
| download | zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.tar zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.tar.gz zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.tar.bz2 zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.tar.lz zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.tar.xz zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.tar.zst zsh-e0d2c9c0b344778492260552e2c8c9bde1526077.zip | |
18313: NULL pointer dereference if yank-pop after a single yank
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/Zle/zle_misc.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2003-02-27 Peter Stephenson <pws@csr.com> + + * 18313: Src/Zle/zle_misc.c: After a single yank (hence + no kill ring), yank-pop did unpleasant things with a NULL pointer. + 2003-02-27 Oliver Kiddle <opk@zsh.org> * unposted: Completion/Unix/Command/_tar: correct my typo diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index d63b52caa..4a5c6c5c2 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -372,7 +372,7 @@ yankpop(char **args) int cc, kctstart = kct; Cutbuffer buf; - if (!(lastcmd & ZLE_YANK)) + if (!(lastcmd & ZLE_YANK) || !kring) return 1; do { /* |
