cleanup: remove mch_fopen in favor of os_fopen

This commit is contained in:
Justin M. Keyes
2019-07-25 22:28:19 +02:00
parent bb3a0099c6
commit 2731080212
18 changed files with 50 additions and 49 deletions

View File

@@ -4575,10 +4575,9 @@ find_pattern_in_path(
xfree(files);
files = bigger;
}
if ((files[depth + 1].fp = mch_fopen((char *)new_fname, "r"))
== NULL)
if ((files[depth + 1].fp = os_fopen((char *)new_fname, "r")) == NULL) {
xfree(new_fname);
else {
} else {
if (++depth == old_files) {
// Something wrong. We will forget one of our already visited files
// now.