From: Enlightenment S. <no-...@en...> - 2012-10-31 23:41:18
|
Log: ecore_imf_example: check NULL parameter in retrieve_surrouding_cb Author: jihoon Date: 2012-10-31 16:41:09 -0700 (Wed, 31 Oct 2012) New Revision: 78734 Trac: http://trac.enlightenment.org/e/changeset/78734 Modified: trunk/ecore/src/examples/ecore_imf_example.c Modified: trunk/ecore/src/examples/ecore_imf_example.c =================================================================== --- trunk/ecore/src/examples/ecore_imf_example.c 2012-10-31 21:25:40 UTC (rev 78733) +++ trunk/ecore/src/examples/ecore_imf_example.c 2012-10-31 23:41:09 UTC (rev 78734) @@ -145,8 +145,10 @@ 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) *cursor_pos = evas_textblock_cursor_pos_get(en->cursor); |