mirror of
https://github.com/tmux/tmux.git
synced 2025-11-06 20:16:04 +00:00
Check event is initialized before delete; fixes crash reported by
Michael Nickerson in GitHub issue 1068.
This commit is contained in:
1
alerts.c
1
alerts.c
@@ -142,6 +142,7 @@ alerts_reset(struct window *w)
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|
||||||
w->flags &= ~WINDOW_SILENCE;
|
w->flags &= ~WINDOW_SILENCE;
|
||||||
|
if (event_initialized(&w->alerts_timer))
|
||||||
event_del(&w->alerts_timer);
|
event_del(&w->alerts_timer);
|
||||||
|
|
||||||
timerclear(&tv);
|
timerclear(&tv);
|
||||||
|
|||||||
Reference in New Issue
Block a user