From 841aad05e68c3ca57d126afef5f2b8fb606f0468 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 15 Mar 2022 02:03:06 +0200 Subject: [PATCH 45/45] Fix handling of absolute LOCALEDIR See osdn #44110 Signed-off-by: Marko Lindqvist --- utility/fcintl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/fcintl.c b/utility/fcintl.c index 8a3dc38da4..d549aa220f 100644 --- a/utility/fcintl.c +++ b/utility/fcintl.c @@ -121,7 +121,7 @@ const char *get_locale_dir(void) * Can't check just against DIR_SEPARATOR_CHAR as the mingw * layer may have converted path to use '/' even on Windows. */ - if (LOCALEDIR[0] != '/' || LOCALEDIR[0] != '\\') { + if (LOCALEDIR[0] != '/' && LOCALEDIR[0] != '\\') { char *cwdbuf; #ifdef HAVE_GETCWD -- 2.35.1