mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 00:21:27 +01:00
18313: NULL pointer dereference if yank-pop after a single yank
This commit is contained in:
parent
4b09b20be2
commit
e0d2c9c0b3
2 changed files with 6 additions and 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
|
||||
|
|
|
@ -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 {
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue