again - follow up from changes to config code to fix seg
Change-Id: Ib20914228cab72e3fc9880c38395fa8e68eb80ee
origin: upstream
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],
_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