summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-06-17 16:54:08 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-06-17 16:54:08 +0900
commitcbf26a518607e7c41d2d1dc71e25db19dd500031 (patch)
tree3fb75d9c59c3cc98b60adfcd32f063d223f309df
parent3babdd927a0dfe49b9aa45854bea95bcf0de838b (diff)
fix more elm config file pointer access
again - follow up from changes to config code to fix seg
-rw-r--r--src/lib/elm_config.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index de77af545..bf2ea325b 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)
3117EAPI void 3117EAPI void
3118elm_config_all_flush(void) 3118elm_config_all_flush(void)
3119{ 3119{
3120 FILE *f;
3121
3120#ifdef HAVE_ELEMENTARY_X 3122#ifdef HAVE_ELEMENTARY_X
3121 if (ecore_x_display_get()) 3123 if (ecore_x_display_get())
3122 ecore_x_window_prop_string_set(_config_win, _atom[ATOM_E_PROFILE], 3124 ecore_x_window_prop_string_set(_config_win, _atom[ATOM_E_PROFILE],
@@ -3126,9 +3128,12 @@ elm_config_all_flush(void)
3126 3128
3127 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/flush", 3129 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/flush",
3128 _elm_profile); 3130 _elm_profile);
3129 FILE *fp = fopen(buf, "w+"); 3131 f = fopen(buf, "w+");
3130 fprintf(fp, "flush"); 3132 if (f)
3131 fclose(fp); 3133 {
3134 fprintf(f, "flush");
3135 fclose(f);
3136 }
3132} 3137}
3133 3138
3134static void 3139static void