mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(tree_store_save): optimisation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
28280c1870
commit
69f4d8c986
@ -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;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user