diff options
Diffstat (limited to 'Build/source/texk/kpathsea/pathsearch.c')
-rw-r--r-- | Build/source/texk/kpathsea/pathsearch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/pathsearch.c b/Build/source/texk/kpathsea/pathsearch.c index 90d21945556..e3b3fc14885 100644 --- a/Build/source/texk/kpathsea/pathsearch.c +++ b/Build/source/texk/kpathsea/pathsearch.c @@ -288,13 +288,14 @@ path_search P4C(const_string, path, string, name, } /* Did we find anything anywhere? */ - if (found && STR_LIST (*found)) + if (found && STR_LIST (*found)) { if (all) str_list_concat (&ret_list, *found); else { str_list_add (&ret_list, STR_LIST_ELT (*found, 0)); done = true; } + } /* Free the list space, if any (but not the elements). */ if (found) { |