Hello all,
In some cases, evas_textblock_cursor_content_get() would seg fault due
to strdup(NULL).
The patch tries to avoid that.
Please check the attached trivial patch and adjust it as you see fit.
Thanks in advance.
brian
--
brian
------------------
Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/
iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
Index: evas/src/lib/canvas/evas_object_textblock.c
===================================================================
--- evas/src/lib/canvas/evas_object_textblock.c (revision 59345)
+++ evas/src/lib/canvas/evas_object_textblock.c (working copy)
@@ -6890,7 +6890,8 @@
tmp = evas_textblock_node_format_text_get(
_evas_textblock_node_visible_at_pos_get(
evas_textblock_cursor_format_get(cur)));
- return strdup(tmp);
+ if (tmp) return strdup(tmp);
+ return NULL;
}
ustr = eina_ustrbuf_string_get(cur->node->unicode);
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel