termiolink: safety on ty being not NULL. CID1365660

This commit is contained in:
Boris Faure 2016-11-08 21:17:48 +01:00
parent 93eb6e6663
commit ed406c4579
1 changed files with 2 additions and 0 deletions

View File

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