diff options
author | nicm <nicm> | 2018-11-19 13:35:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-11-19 13:35:40 +0000 |
commit | 749f67b7d801eed03345fef9c04206fbd079c3cb (patch) | |
tree | c3f0924151a023f0f0fc52e8174577a10be94d64 /input.c | |
parent | f103927a5232e0d3e8e7ad0e13aa53b4dfa2c87b (diff) | |
download | rtmux-749f67b7d801eed03345fef9c04206fbd079c3cb.tar.gz rtmux-749f67b7d801eed03345fef9c04206fbd079c3cb.tar.bz2 rtmux-749f67b7d801eed03345fef9c04206fbd079c3cb.zip |
evbuffer_new and bufferevent_new can both fail (when malloc fails) and
return NULL. GitHub issue 1547.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -767,6 +767,8 @@ input_init(struct window_pane *wp) ictx->input_buf = xmalloc(INPUT_BUF_START); ictx->since_ground = evbuffer_new(); + if (ictx->since_ground == NULL) + fatalx("out of memory"); evtimer_set(&ictx->timer, input_timer_callback, ictx); |