mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Check for NULL returns from bufferevent_new.
This commit is contained in:
2
window.c
2
window.c
@ -1033,6 +1033,8 @@ window_pane_set_event(struct window_pane *wp)
|
||||
|
||||
wp->event = bufferevent_new(wp->fd, window_pane_read_callback,
|
||||
NULL, window_pane_error_callback, wp);
|
||||
if (wp->event == NULL)
|
||||
fatalx("out of memory");
|
||||
wp->ictx = input_init(wp, wp->event, &wp->palette);
|
||||
|
||||
bufferevent_enable(wp->event, EV_READ|EV_WRITE);
|
||||
|
Reference in New Issue
Block a user