summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src/qrcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsAppWeb/src/qrcode.cpp')
-rw-r--r--protocols/WhatsAppWeb/src/qrcode.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/WhatsAppWeb/src/qrcode.cpp b/protocols/WhatsAppWeb/src/qrcode.cpp
index 46b71700c5..9dd69f92e3 100644
--- a/protocols/WhatsAppWeb/src/qrcode.cpp
+++ b/protocols/WhatsAppWeb/src/qrcode.cpp
@@ -113,8 +113,7 @@ bool WhatsAppProto::ShowQrCode(const CMStringA &ref)
{
CallFunctionSync(sttShowDialog, this);
- MBinBuffer secret;
- getBlob(DBKEY_SECRET_KEY, secret);
+ MBinBuffer secret(getBlob(DBKEY_SECRET_KEY));
ptrA s1(mir_base64_encode(m_noise->noiseKeys.pub));
ptrA s2(mir_base64_encode(m_noise->signedIdentity.pub));