1
0
Fork 0
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:
Peter Stephenson 2003-02-27 11:32:44 +00:00
parent 4b09b20be2
commit e0d2c9c0b3
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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 {
/*