hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=911341c30bf09b4336cd90d04270aa50d144cf2e
commit 911341c30bf09b4336cd90d04270aa50d144cf2e Author: Mykyta Biliavskyi <m.biliavs...@samsung.com> Date: Thu Aug 7 15:25:26 2014 +0900 edc_editor: fix segfault on last character undo. Summary: In case when undone character(s) in entry, was call updating syntax highlight. If entry is empty, then pointer of text didn't cleared and it was cause segfault in evas_textblock module. @fix Fixes T1480 Reviewers: Hermet Subscribers: kfesyna Projects: #enventor Maniphest Tasks: T1480 Differential Revision: https://phab.enlightenment.org/D1272 --- src/bin/edc_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c index 9df4f25..50ee1d1 100644 --- a/src/bin/edc_editor.c +++ b/src/bin/edc_editor.c @@ -205,7 +205,7 @@ syntax_color_full_update(edit_data *ed, Eina_Bool thread) if (thread) { - syntax_color_td *td = malloc(sizeof(syntax_color_td)); + syntax_color_td *td = calloc(1, sizeof(syntax_color_td)); if (!td) { EINA_LOG_ERR("Failed to allocate Memory!"); --