diff options
author | Karl Berry <karl@freefriends.org> | 2008-01-15 17:31:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-01-15 17:31:20 +0000 |
commit | 729cc852b825bf3b2ff59b8218624bce71074fbf (patch) | |
tree | 9140e3658228d1e5b9a4c17f1b3214bccf0843a4 /Build/source/texk/kpathsea/variable.c | |
parent | 866ffb1ed5b357aae044468790e53f80d7b977fa (diff) |
call kpse_make_tex when the first element is NULL, now that we return a list
git-svn-id: svn://tug.org/texlive/trunk@6240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/variable.c')
-rw-r--r-- | Build/source/texk/kpathsea/variable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/variable.c b/Build/source/texk/kpathsea/variable.c index 7632f576c70..07881f773d3 100644 --- a/Build/source/texk/kpathsea/variable.c +++ b/Build/source/texk/kpathsea/variable.c @@ -61,9 +61,9 @@ kpse_var_value P1C(const_string, var) worry about doing the ~ expansion. */ if (ret) { string tmp = kpse_var_expand (ret); - if (tmp != ret) { - free (ret); - } + /* We don't want to free the previous value of ret here; apparently + it's used later, somewhere, somehow. (The end result was a crash + when making tex.fmt.) Sigh. */ ret = kpse_tilde_expand (tmp); if (ret != tmp) { free (tmp); |