summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/kpsewhich.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-12-20 23:20:39 +0000
committerKarl Berry <karl@freefriends.org>2009-12-20 23:20:39 +0000
commit8d229e57b15e0d064f35e9c0bc692b53df916ab6 (patch)
treece9e2bf34c11aeb01930f4f64be0b143e2bd4e38 /Build/source/texk/kpathsea/kpsewhich.c
parentc7a8eb600b1f7ee2ef9012ac93dfb48852e9f480 (diff)
(find_format): had forgotten to increment the loop
variable, hence the hang. From Akira. git-svn-id: svn://tug.org/texlive/trunk@16463 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/kpsewhich.c')
-rw-r--r--Build/source/texk/kpathsea/kpsewhich.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c
index e5c278da18b..0aece91390e 100644
--- a/Build/source/texk/kpathsea/kpsewhich.c
+++ b/Build/source/texk/kpathsea/kpsewhich.c
@@ -159,24 +159,10 @@ find_format (kpathsea kpse, string name, boolean is_filename)
if (found)
break;
-
- /* Some trickery here: the extensions for kpse_fmt_format (which
- is just .fmt) can clash with other extensions in use (how?),
- and we prefer for those others to be preferred. And we don't
- want to change the integer value of kpse_fmt_format. So skip
- it when first encountered, then use it when we've done
- everything else, and use it as the end-guard. */
- if (f == kpse_fmt_format) {
- f = kpse_last_format;
- } else if (++f == kpse_fmt_format) {
- f++;
- } else if (f == kpse_last_format) {
- f = kpse_fmt_format;
- }
-
- /* If there was a match, f will be one past the correct value. */
- ret = f;
+ f++;
}
+
+ ret = f;
}
return ret;