raster pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=cbf26a518607e7c41d2d1dc71e25db19dd500031
commit cbf26a518607e7c41d2d1dc71e25db19dd500031 Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Wed Jun 17 16:54:08 2015 +0900 fix more elm config file pointer access again - follow up from changes to config code to fix seg --- src/lib/elm_config.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index de77af5..bf2ea32 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -3117,6 +3117,8 @@ elm_config_window_auto_focus_animate_set(Eina_Bool enable) EAPI void elm_config_all_flush(void) { + FILE *f; + #ifdef HAVE_ELEMENTARY_X if (ecore_x_display_get()) ecore_x_window_prop_string_set(_config_win, _atom[ATOM_E_PROFILE], @@ -3126,9 +3128,12 @@ elm_config_all_flush(void) _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/flush", _elm_profile); - FILE *fp = fopen(buf, "w+"); - fprintf(fp, "flush"); - fclose(fp); + f = fopen(buf, "w+"); + if (f) + { + fprintf(f, "flush"); + fclose(f); + } } static void --