From 7057d1b1b047f1aeef2803f04df088758f6faf9a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 1 Jan 2012 12:22:16 +0000 Subject: [PATCH] Elm entry: Fix segfault when selection is NULL. Patch by Jihoon Kim, adjusted a bit. SVN revision: 66714 --- src/lib/elm_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 9dd3ce5..4b3af83 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1530,7 +1530,7 @@ _signal_selection_start(void *data, Evas_Object *obj __UNUSED__, const char *emi Evas_Object *top; top = elm_widget_top_get(data); - if ((top) && (elm_win_xwindow_get(top))) + if (txt && top && (elm_win_xwindow_get(top))) elm_cnp_selection_set(ELM_SEL_TYPE_PRIMARY, data, ELM_SEL_FORMAT_MARKUP, txt, strlen(txt)); } -- 2.7.4