aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-11-21 14:57:05 +0100
committerBoris Faure <billiob@gmail.com>2015-11-21 14:57:05 +0100
commit3799c924dc9a3824058363ea91261cf08d9c1a2a (patch)
tree270a746ce61d9a3f348d809b1f534daca358c3bb /src/bin/win.c
parentconfig: fix CID 1339831: Null pointer dereference (diff)
downloadterminology-3799c924dc9a3824058363ea91261cf08d9c1a2a.tar.gz
fix wrong assert. Closes https://phab.enlightenment.org/T2858
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index d7b0087..23873d8 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2408,7 +2408,8 @@ _tabs_focus(Term_Container *tc, Term_Container *relative)
Tab_Item *tab_item;
l = _tab_item_find(tabs, relative);
- assert(l);
+ if (!l)
+ return;
tc->is_focused = EINA_TRUE;
@@ -2480,7 +2481,8 @@ _tabs_set_title(Term_Container *tc, Term_Container *child,
tabs = (Tabs*) tc;
l = _tab_item_find(tabs, child);
- assert(l);
+ if (!l)
+ return;
tab_item = l->data;
if (tabs->selector && tab_item->selector_entry)