From d178408e5d3ddf9b9b0cdc9946b631c8767d4e01 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 9 Nov 2020 09:46:44 +0200 Subject: [PATCH] avoid possible recursion in QLocalePrivate::findLocale() Signed-off-by: Ivailo Monev --- src/core/tools/qlocale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tools/qlocale.cpp b/src/core/tools/qlocale.cpp index 405fdd25a..f14f15570 100644 --- a/src/core/tools/qlocale.cpp +++ b/src/core/tools/qlocale.cpp @@ -208,7 +208,7 @@ const QLocalePrivate *QLocalePrivate::findLocale(QLocale::Language language, QLo script = subtagAliasTbl[i].toscript; country = subtagAliasTbl[i].tocountry; QLOCALEDEBUG << "to" << language << script << country; - return QLocalePrivate::findLocale(language, script, country); + break; } }