win: fix CID 1339836: Null pointer dereference

This commit is contained in:
Boris Faure 2015-11-19 21:00:22 +01:00
parent 04089d1e11
commit 224173f88d
1 changed files with 1 additions and 0 deletions

View File

@ -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);