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
This commit is contained in:
Mykyta Biliavskyi 2014-08-07 15:25:26 +09:00 committed by ChunEon Park
parent ba67f62d4e
commit 911341c30b
1 changed files with 1 additions and 1 deletions

View File

@ -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!");