Initialize QCoapPrivateKey correctly

This fixes the handling of an empty QCoapPrivateKey.

Change-Id: I0dd92b2edcb0aacf56a8cb1933227f6673404f52
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
This commit is contained in:
Sona Kurazyan 2019-03-27 16:23:47 +01:00
parent b2ddb9bc50
commit d1e1548ccf
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ class QCoapPrivateKeyPrivate : public QSharedData
{
public:
QByteArray key;
Qt::HANDLE opaqueKey;
QSsl::KeyAlgorithm algorithm;
Qt::HANDLE opaqueKey = nullptr;
QSsl::KeyAlgorithm algorithm = QSsl::Opaque;
QSsl::EncodingFormat encodingFormat;
QByteArray passPhrase;
};