git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit b4f2ed8c4657f926807767b91eb36e675a17fc10
parent 09109ecea276c422b7954f4d2774c342cd671cc2
Author: Rob King <jking@deadpixi.com>
Date:   Tue, 20 Jun 2017 09:39:47 -0500

Fail earlier on allocation failure.

Diffstat:
Mmtm.c9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -982,10 +982,11 @@ reshapeview(NODE *n, int y, int x, int h, int w) /* Reshape a view. */ struct winsize ws = {.ws_row = h, .ws_col = w}; bool *tabs = newtabs(w, n->w, n->tabs); - if (tabs){ - free(n->tabs); - n->tabs = tabs; - } + if (!tabs) + return; + + free(n->tabs); + n->tabs = tabs; n->y = y; n->x = x;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.