From 4d33c3ff14997847b7e738d257a4d58faecc49fc Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 23 Nov 2018 10:53:49 +0000 Subject: support non-ascii values for variables (w32 only) git-svn-id: svn://tug.org/texlive/trunk@49230 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/elt-dirs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/kpathsea/elt-dirs.c b/Build/source/texk/kpathsea/elt-dirs.c index 799cca705f6..76fca5513b4 100644 --- a/Build/source/texk/kpathsea/elt-dirs.c +++ b/Build/source/texk/kpathsea/elt-dirs.c @@ -409,6 +409,10 @@ kpathsea_element_dirs (kpathsea kpse, string elt) str_llist_type *ret; unsigned i; + /* If given nothing, return nothing. */ + if (!elt || !*elt) + return NULL; + #ifdef _WIN32 /* Change encoding of a variable into kpse->File_system_codepage @@ -426,10 +430,6 @@ kpathsea_element_dirs (kpathsea kpse, string elt) } #endif - /* If given nothing, return nothing. */ - if (!elt || !*elt) - return NULL; - /* Normalize ELT before looking for a cached value. */ i = kpathsea_normalize_path (kpse, elt); -- cgit v1.2.3