aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar buttercat1791 <mjjurkoic@gmail.com>2024-05-27 22:46:55 -0500
committerLibravatar buttercat1791 <mjjurkoic@gmail.com>2024-05-27 22:46:55 -0500
commitb61ff680f2f16fe9b86da5f8c9dde78a926d8997 (patch)
tree6d0b81525e8cad1755927fc7d14a6176dbae3a35
parent564a8ee70699fb44437d73f4c310cd37481da21b (diff)
Correctly initialize NCContext pointer
-rw-r--r--src/signer/noscrypt_signer.cpp2
1 files changed, 1 insertions, 1 deletions
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<data::Event> event)
*/
shared_ptr<NCContext> nostr::signer::NoscryptSigner::_initNoscryptContext()
{
- shared_ptr<NCContext> context(new NCContext);
+ shared_ptr<NCContext> context;
auto contextStructSize = NCGetContextStructSize();
unique_ptr<uint8_t> randomEntropy(new uint8_t[contextStructSize]);