ctxpopup: Fix to initialize string buffer.

Summary: Fix to initialize string buffer before calling strcat().

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1831
This commit is contained in:
Jaehyun Cho 2014-12-30 11:52:14 +09:00 committed by ChunEon Park
parent 8b27ad269c
commit ec28195641
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ toggle_dismiss_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
Evas_Object *toggle;
Eina_List *box_children = elm_box_children_get(box);
Eina_List *l;
char candidate[512];
char candidate[512] = {0};
char buf[128];
if (eina_list_count(box_children) == 0) return;
@ -117,7 +117,7 @@ slider_dismiss_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
Evas_Object *slider;
Eina_List *box_children = elm_box_children_get(box);
Eina_List *l;
char candidate[512];
char candidate[512] = {0};
char buf[128];
if (eina_list_count(box_children) == 0) return;