template: set uninitialized value

Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4001
This commit is contained in:
Bowon Ryu 2016-06-02 11:57:30 +09:00 committed by Jaehyun Cho
parent e5ffff6872
commit 2698280453
1 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ template_part_insert(edit_data *ed, Edje_Part_Type part_type,
int line_cnt = 0;
char **t = NULL;
char buf[64];
char type_name[20];
char type_name[20] = {0, };
switch(part_type)
{
@ -434,7 +434,7 @@ template_insert(edit_data *ed,
int line_cnt;
char **t = NULL;
char first_line[40];
char first_line[40] = {0, };
char random_name[9];
int space = edit_cur_indent_depth_get(ed);