From 46607d651dcaecf4c2d2a1deba7033a0989bc6fc Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 14 Aug 2013 00:33:57 +0000 Subject: Fix a bug: 'n' and 'f' can be drive letters. git-svn-id: svn://tug.org/texlive/trunk@31426 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/win32lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Build/source/texk/kpathsea/win32lib.c') diff --git a/Build/source/texk/kpathsea/win32lib.c b/Build/source/texk/kpathsea/win32lib.c index d80967ef2ff..f281d8b7793 100644 --- a/Build/source/texk/kpathsea/win32lib.c +++ b/Build/source/texk/kpathsea/win32lib.c @@ -103,7 +103,7 @@ void texlive_gs_init(void) char tlgsbindir[512]; char tlgslibdir[512]; nptr = kpse_var_value("TEXLIVE_WINDOWS_EXTERNAL_GS"); - if (nptr == NULL || *nptr == '0' || *nptr == 'n' || *nptr == 'f') { + if (nptr == NULL || !strcmp(nptr, "0") || !strcmp(nptr, "n") || !strcmp(nptr, "f")) { if (nptr) free (nptr); nptr = kpse_var_value("SELFAUTOPARENT"); -- cgit v1.2.3