hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=c25eb038b3a596444981103feb748f9ef6b12da4
commit c25eb038b3a596444981103feb748f9ef6b12da4 Author: ChunEon Park <her...@hermet.pe.kr> Date: Fri Jul 10 20:10:37 2015 +0900 text_setting: code refactoring. err is enough to use. --- src/bin/text_setting.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/text_setting.c b/src/bin/text_setting.c index 8866728..a6dd083 100644 --- a/src/bin/text_setting.c +++ b/src/bin/text_setting.c @@ -524,10 +524,10 @@ syntax_template_format_create(void) } char *utf8 = eina_file_map_all(file, EINA_FILE_POPULATE); - if (!utf8) goto syntax_template_format_create_err; + if (!utf8) goto err; char *syntax_template_format = calloc(1, sizeof(char) * (strlen(utf8) + 1)); - if (!syntax_template_format) goto syntax_template_format_create_err; + if (!syntax_template_format) goto err; strcpy(syntax_template_format, utf8); tsd->syntax_template_format = syntax_template_format; @@ -536,7 +536,7 @@ syntax_template_format_create(void) return tsd->syntax_template_format; -syntax_template_format_create_err: +err: EINA_LOG_ERR("Failed to allocate Memory!"); if (utf8) free(utf8); --