summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/examples/ecore_imf_example.c
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-10-31 23:41:09 +0000
committerJihoon Kim <imfine98@gmail.com>2012-10-31 23:41:09 +0000
commit33a689276343970f97d42d54aab6bc2c823cc0c5 (patch)
tree210df3d01df06981df4039ccc7ab1bbcc757c44e /legacy/ecore/src/examples/ecore_imf_example.c
parent884558f342708ef51aa7076e598af4292ab0ba56 (diff)
ecore_imf_example: check NULL parameter in retrieve_surrouding_cb
SVN revision: 78734
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)