From db80ad8c771cc3f074cc99c7c24749b1a21baefb Mon Sep 17 00:00:00 2001 From: Saurtron Date: Mon, 18 Nov 2024 00:31:03 +0100 Subject: [PATCH] List all fontconfig cache dirs. --- rts/Rendering/Fonts/CFontTexture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rts/Rendering/Fonts/CFontTexture.cpp b/rts/Rendering/Fonts/CFontTexture.cpp index cc13a62760..29bc7c008d 100644 --- a/rts/Rendering/Fonts/CFontTexture.cpp +++ b/rts/Rendering/Fonts/CFontTexture.cpp @@ -188,8 +188,7 @@ class FtLibraryHandler { { auto dirs = FcConfigGetCacheDirs(GetFCConfig()); FcStrListFirst(dirs); - for (FcChar8* dir = FcStrListNext(dirs), *prevDir = nullptr; dir != nullptr && dir != prevDir; ) { - prevDir = dir; + for (FcChar8* dir = FcStrListNext(dirs); dir != nullptr; dir = FcStrListNext(dirs)) { LOG_MSG("[%s] Using Fontconfig cache dir \"%s\"", false, __func__, dir); } FcStrListDone(dirs);