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);