(tree_store_save): optimisation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2015-12-20 10:49:38 +03:00
parent 28280c1870
commit 69f4d8c986

View File

@ -661,15 +661,12 @@ tree_store_save (void)
retval = tree_store_save_to (name);
if (retval != 0)
{
mc_util_restore_from_backup_if_possible (name, ".tmp");
g_free (name);
return retval;
}
else
mc_util_unlink_backup_if_possible (name, ".tmp");
mc_util_unlink_backup_if_possible (name, ".tmp");
g_free (name);
return 0;
return retval;
}
/* --------------------------------------------------------------------------------------------- */