From b61ff680f2f16fe9b86da5f8c9dde78a926d8997 Mon Sep 17 00:00:00 2001 From: buttercat1791 Date: Mon, 27 May 2024 22:46:55 -0500 Subject: Correctly initialize NCContext pointer --- src/signer/noscrypt_signer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signer/noscrypt_signer.cpp b/src/signer/noscrypt_signer.cpp index 05872c2..0e0ff89 100644 --- a/src/signer/noscrypt_signer.cpp +++ b/src/signer/noscrypt_signer.cpp @@ -54,7 +54,7 @@ void nostr::signer::NoscryptSigner::sign(shared_ptr event) */ shared_ptr nostr::signer::NoscryptSigner::_initNoscryptContext() { - shared_ptr context(new NCContext); + shared_ptr context; auto contextStructSize = NCGetContextStructSize(); unique_ptr randomEntropy(new uint8_t[contextStructSize]); -- cgit