yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=cd73ab0515b9c53c853ffbc8773971fbbb81d83d
commit cd73ab0515b9c53c853ffbc8773971fbbb81d83d Author: Yakov Goldberg <yako...@samsung.com> Date: Mon Jan 4 14:38:48 2016 +0200 Handle a case when 'basedir' property is not defined If 'basedir' property is not defined, use '.' by default. --- src/lib/gui_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gui_parser.c b/src/lib/gui_parser.c index 3122e25..17b5b23 100644 --- a/src/lib/gui_parser.c +++ b/src/lib/gui_parser.c @@ -986,11 +986,11 @@ _settings_parse(Gui_Context *gui_ctx, Eina_Json_Value *res_js) eina_iterator_free(it); } tmp = EINA_JSON_OBJECT_VALUE_GET(res_js, "basedir"); - if (tmp) { + if (!tmp) printf("Warning: field 'basedir' was not found. Basedir will be set to '.'\n"); char basedir_rel[PATH_MAX]; char *basedir_abs; - val = eina_json_string_get(tmp); + val = tmp ? eina_json_string_get(tmp) : "."; gui_context_project_basedir_set(gui_ctx, val); /* Resolve the basedir: the basedir itself is always stored relative to --