yakov pushed a commit to branch master. http://git.enlightenment.org/tools/erigo.git/commit/?id=5fbc8290eb003ac68d9f5e0dde30771998a29578
commit 5fbc8290eb003ac68d9f5e0dde30771998a29578 Author: Yakov Goldberg <yako...@samsung.com> Date: Mon May 11 14:59:23 2015 +0300 Fix warnings --- src/bin/gui/settings.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/gui/settings.c b/src/bin/gui/settings.c index 3c5b41b..b6d8bf6 100644 --- a/src/bin/gui/settings.c +++ b/src/bin/gui/settings.c @@ -64,6 +64,7 @@ settings_load() { Eina_Bool ret = EINA_TRUE; char *file_data = gui_parser_file_string_get(_filename); + Eina_Json_Value *jv = NULL, *tmp = NULL; Eina_Json_Context *ctx = eina_json_context_dom_new(); Eina_Json_Type type; @@ -80,8 +81,6 @@ settings_load() goto end; } - Eina_Json_Value *jv, *tmp; - jv = eina_json_context_dom_tree_take(ctx); type = eina_json_type_get(jv); /* check, that first json value is object, t.e. { win : {...} }*/ @@ -116,6 +115,7 @@ void settings_dump() { FILE *fp_json = fopen(_filename, "w+"); + char *json_str = NULL; if (!fp_json) { @@ -139,7 +139,6 @@ settings_dump() eina_json_object_append(root_obj, "Custom Themes", arr); - char *json_str = NULL; json_str = eina_json_format_string_get(root_obj, EINA_JSON_FORMAT_BASIC); eina_json_value_free(root_obj); fprintf(fp_json, "%s", json_str); --