summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/examples/ecore_imf_example.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/examples/ecore_imf_example.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/legacy/ecore/src/examples/ecore_imf_example.c b/legacy/ecore/src/examples/ecore_imf_example.c
index 005102ae82..53f3899146 100644
--- a/legacy/ecore/src/examples/ecore_imf_example.c
+++ b/legacy/ecore/src/examples/ecore_imf_example.c
@@ -145,7 +145,9 @@ _ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **te
145 if (!en) return; 145 if (!en) return;
146 146
147 str = evas_object_textblock_text_markup_get(en->txt_obj); 147 str = evas_object_textblock_text_markup_get(en->txt_obj);
148 *text = str ? strdup(str) : strdup(""); 148
149 if (text)
150 *text = str ? strdup(str) : strdup("");
149 151
150 /* get the current position of cursor */ 152 /* get the current position of cursor */
151 if (cursor_pos) 153 if (cursor_pos)