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,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
|
||||
|
Loading…
Reference in New Issue
Block a user