From a247010813ccd5e5b79db6eff81e47b0283b634e Mon Sep 17 00:00:00 2001 From: Mykyta Biliavskyi Date: Mon, 1 Jun 2015 13:24:21 +0000 Subject: [PATCH] Command line arguments: fix ignoring resource pathes. If application run with command like: enventor --id /path/images --fd /path/fonts Pathes will be used in application. @fix --- src/bin/main.c | 52 ++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/src/bin/main.c b/src/bin/main.c index 91213bf..3ce2919 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -364,33 +364,31 @@ defaults: sprintf(edc_path, "%s", (const char *)tmp_path); eina_tmpstr_del(tmp_path); } - else - { - char *s = NULL; - EINA_LIST_FREE(id, s) - { - *img_path = eina_list_append(*img_path, eina_stringshare_add(s)); - free(s); - } - id = NULL; - EINA_LIST_FREE(sd, s) - { - *snd_path = eina_list_append(*snd_path, eina_stringshare_add(s)); - free(s); - } - sd = NULL; - EINA_LIST_FREE(fd, s) - { - *fnt_path = eina_list_append(*fnt_path, eina_stringshare_add(s)); - free(s); - } - fd = NULL; - EINA_LIST_FREE(dd, s) - { - *dat_path = eina_list_append(*dat_path, eina_stringshare_add(s)); - free(s); - } - } + + char *s = NULL; + EINA_LIST_FREE(id, s) + { + *img_path = eina_list_append(*img_path, eina_stringshare_add(s)); + free(s); + } + id = NULL; + EINA_LIST_FREE(sd, s) + { + *snd_path = eina_list_append(*snd_path, eina_stringshare_add(s)); + free(s); + } + sd = NULL; + EINA_LIST_FREE(fd, s) + { + *fnt_path = eina_list_append(*fnt_path, eina_stringshare_add(s)); + free(s); + } + fd = NULL; + EINA_LIST_FREE(dd, s) + { + *dat_path = eina_list_append(*dat_path, eina_stringshare_add(s)); + free(s); + } ecore_getopt_list_free(id); ecore_getopt_list_free(fd);