(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,17 +661,14 @@ tree_store_save (void)
retval = tree_store_save_to (name);
if (retval != 0)
{
mc_util_restore_from_backup_if_possible (name, ".tmp");
else
mc_util_unlink_backup_if_possible (name, ".tmp");
g_free (name);
return retval;
}
mc_util_unlink_backup_if_possible (name, ".tmp");
g_free (name);
return 0;
}
/* --------------------------------------------------------------------------------------------- */
void