Fix closing the same file twice.

This commit is contained in:
Pavel Roskin 2002-12-16 05:01:02 +00:00
parent 6743211748
commit 74714227fb
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}