aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-11-08 21:17:48 +0100
committerBoris Faure <billiob@gmail.com>2016-11-08 21:17:48 +0100
commited406c4579035894ca04362a2dcf9c468db42548 (patch)
tree2534f14234479041ec65179a7e6104c370c73692
parenttermiolink: check return of ty_sb_prepend(). CID1365659 (diff)
downloadterminology-ed406c4579035894ca04362a2dcf9c468db42548.tar.gz
termiolink: safety on ty being not NULL. CID1365660
-rw-r--r--src/bin/termiolink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 86d0bfc..c810c65 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -212,6 +212,8 @@ termio_link_find(Evas_Object *obj, int cx, int cy,
int txtlen = 0;
Eina_Bool was_protocol = EINA_FALSE;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(ty, NULL);
+
x1 = x2 = cx;
y1 = y2 = cy;
termio_size_get(obj, &w, &h);