forked from enlightenment/efl
ecore_imf_example: check NULL parameter in retrieve_surrouding_cb
SVN revision: 78734
This commit is contained in:
parent
884558f342
commit
33a6892763
|
@ -145,7 +145,9 @@ _ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **te
|
||||||
if (!en) return;
|
if (!en) return;
|
||||||
|
|
||||||
str = evas_object_textblock_text_markup_get(en->txt_obj);
|
str = evas_object_textblock_text_markup_get(en->txt_obj);
|
||||||
*text = str ? strdup(str) : strdup("");
|
|
||||||
|
if (text)
|
||||||
|
*text = str ? strdup(str) : strdup("");
|
||||||
|
|
||||||
/* get the current position of cursor */
|
/* get the current position of cursor */
|
||||||
if (cursor_pos)
|
if (cursor_pos)
|
||||||
|
|
Loading…
Reference in New Issue