summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 4fc2f3b21..647679d7a 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -767,6 +767,7 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
767{ 767{
768 Eet_File *ef; 768 Eet_File *ef;
769 char buf[PATH_MAX], buf2[PATH_MAX]; 769 char buf[PATH_MAX], buf2[PATH_MAX];
770 int ret;
770 771
771 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s", 772 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s",
772 profile ? profile : _elm_profile); 773 profile ? profile : _elm_profile);
@@ -778,9 +779,9 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
778 ef = eet_open(buf, EET_FILE_MODE_WRITE); 779 ef = eet_open(buf, EET_FILE_MODE_WRITE);
779 if (ef) 780 if (ef)
780 { 781 {
781 eet_data_write(ef, _config_derived_edd, "config", derived, 1); 782 ret = eet_data_write(ef, _config_derived_edd, "config", derived, 1);
782 eet_close(ef); 783 eet_close(ef);
783 ecore_file_mv(buf, buf2); 784 if (ret) ecore_file_mv(buf, buf2);
784 } 785 }
785} 786}
786 787