aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-11-19 21:00:22 +0100
committerBoris Faure <billiob@gmail.com>2015-11-19 21:00:22 +0100
commit224173f88de50ef594cf82527328b5bd3bd809b4 (patch)
treed75cbf3c7983bf067199c51b5c47f22380579cd0 /src/bin/win.c
parentlz4: fix CID 1339837: Null pointer dereference (diff)
downloadterminology-224173f88de50ef594cf82527328b5bd3bd809b4.tar.gz
win: fix CID 1339836: Null pointer dereference
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 6bae019..d7b0087 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2622,6 +2622,7 @@ tab_item_new(Tabs *tabs, Term_Container *child)
Tab_Item *tab_item;
tab_item = calloc(1, sizeof(Tab_Item));
+ if (!tab_item) return NULL;
tab_item->tc = child;
assert(child != NULL);
assert(child->type == TERM_CONTAINER_TYPE_SOLO);