hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=8ef03ee90c8e0ea69272f502b6e4c4aca8d7f281
commit 8ef03ee90c8e0ea69272f502b6e4c4aca8d7f281 Author: ChunEon Park <her...@hermet.pe.kr> Date: Fri Jul 3 22:38:18 2015 +0900 newfile: code refactoring. return function as soon as possible. --- src/bin/newfile.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/newfile.c b/src/bin/newfile.c index d3e7e09..9108c2f 100644 --- a/src/bin/newfile.c +++ b/src/bin/newfile.c @@ -64,15 +64,15 @@ newfile_set(Evas_Object *enventor, Eina_Bool template_new) void newfile_default_set(Eina_Bool default_edc) { + if (!default_edc) return; + Eina_Bool success = EINA_TRUE; char buf[PATH_MAX]; + snprintf(buf, sizeof(buf), "%s/templates/basic.edc", elm_app_data_dir_get()); - if (default_edc) - { - success = eina_file_copy(buf,config_edc_path_get(), - EINA_FILE_COPY_DATA, NULL, NULL); - } + success = eina_file_copy(buf,config_edc_path_get(), + EINA_FILE_COPY_DATA, NULL, NULL); if (!success) { EINA_LOG_ERR("Cannot find file! \"%s\"", buf); --