ecore_imf_example: check NULL parameter in retrieve_surrouding_cb

SVN revision: 78734
This commit is contained in:
Jihoon Kim 2012-10-31 23:41:09 +00:00
parent 884558f342
commit 33a6892763
1 changed files with 3 additions and 1 deletions

View File

@ -145,7 +145,9 @@ _ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **te
if (!en) return;
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 */
if (cursor_pos)