1
1

Fix closing the same file twice.

Этот коммит содержится в:
Pavel Roskin 2002-12-16 05:01:02 +00:00
родитель 6743211748
Коммит 74714227fb

Просмотреть файл

@ -374,8 +374,6 @@ check_file_access (WEdit *edit, const char *filename, struct stat *st)
return 1;
}
mc_close (file);
/*
* Don't delete non-empty files.
* O_EXCL should prevent it, but let's be on the safe side.
@ -392,6 +390,7 @@ check_file_access (WEdit *edit, const char *filename, struct stat *st)
return 1;
}
mc_close (file);
return 0;
}