diff --git a/src/core/tools/qlocale.cpp b/src/core/tools/qlocale.cpp index 3053aa6e9..27c770a3d 100644 --- a/src/core/tools/qlocale.cpp +++ b/src/core/tools/qlocale.cpp @@ -1854,7 +1854,8 @@ QString QLocalePrivate::doubleToString(const QChar _zero, const QChar plus, cons // Handle normal numbers if (!special_number) { - int decpt, sign; + int decpt = 0; + int sign = 0; QString digits; // NOT thread safe!