diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 394e1d2c89e..c7a601fe5e1 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -2703,7 +2703,7 @@ void QString::resize(qsizetype size) reallocData(size, QArrayData::Grow); d.size = size; if (d->allocatedCapacity()) - d.data()[size] = 0; + d.data()[size] = u'\0'; } /*!