From b71abea40f491726f96ea26143306ec27aa611ee Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 3 Oct 2016 09:35:14 -0700 Subject: 39547: handle zero delta in calc_timeout() --- Src/Zle/zle_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 0b3b1fcf4..4b47d6072 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -471,7 +471,7 @@ calc_timeout(struct ztmout *tmoutp, long do_keytmout) tfdat = (Timedfn)getdata(tfnode); diff = tfdat->when - time(NULL); - if (diff < 0) { + if (diff <= 0) { /* Already due; call it and rescan. */ tfdat->func(); continue; -- cgit 1.4.1