billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=224173f88de50ef594cf82527328b5bd3bd809b4

commit 224173f88de50ef594cf82527328b5bd3bd809b4
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Nov 19 21:00:22 2015 +0100

    win: fix CID 1339836:  Null pointer dereference
---
 src/bin/win.c | 1 +
 1 file changed, 1 insertion(+)

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

-- 


Reply via email to