summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/cnf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/cnf.c b/Build/source/texk/kpathsea/cnf.c
index 982495bde48..394b4630506 100644
--- a/Build/source/texk/kpathsea/cnf.c
+++ b/Build/source/texk/kpathsea/cnf.c
@@ -162,7 +162,7 @@ read_all_cnf P1H(void)
cnf_hash = hash_create (CNF_HASH_SIZE);
cnf_files = kpse_all_path_search (cnf_path, CNF_NAME);
- if (cnf_files) {
+ if (cnf_files && *cnf_files) {
for (cnf = cnf_files; *cnf; cnf++) {
string line;
FILE *cnf_file = xfopen (*cnf, FOPEN_R_MODE);
@@ -197,7 +197,8 @@ read_all_cnf P1H(void)
free (*cnf);
}
free (cnf_files);
- }
+ } else
+ WARNING1 ("Couldn't find file texmf.cnf in any of these directories:\n%s\nTrying to proceed...", cnf_path);
}
/* Read the cnf files on the first call. Return the first value in the