From e0d2c9c0b344778492260552e2c8c9bde1526077 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 27 Feb 2003 11:32:44 +0000 Subject: 18313: NULL pointer dereference if yank-pop after a single yank --- Src/Zle/zle_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle') 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 { /* -- cgit 1.4.1