aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-12-20 20:20:34 +0100
committerBoris Faure <billiob@gmail.com>2016-12-20 20:20:34 +0100
commite5f3676e32d15e4763cfdbbef0b1fbac194ea554 (patch)
tree8af3669cb78fca4d6d3b58701e40d1b1fd45dfed
parenttermpty: fix potential NULL dereference. CID1367485 (diff)
downloadterminology-e5f3676e32d15e4763cfdbbef0b1fbac194ea554.tar.gz
termio: fix getting selection of known link. CID1367486
-rw-r--r--src/bin/termio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index f2dfaa9..507e7f6 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -2351,7 +2351,7 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type)
len = strlen(sd->link.string);
s = strndup(sd->link.string, len);
}
- return EINA_FALSE;
+ goto end;
}
if (sd->pty->selection.is_box)
@@ -2384,6 +2384,7 @@ termio_take_selection(Evas_Object *obj, Elm_Sel_Type type)
EINA_TRUE);
}
+end:
if (s)
{
if ((sd->win) && (len > 0))