Skip to content

Commit 2d7549b

Browse files
committed
Explicitly initialize hash in Argon2Worker
1 parent efff87c commit 2d7549b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

argon2_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class HashWorker final : public Napi::AsyncWorker {
6969
using ustring = std::basic_string<uint8_t>;
7070

7171
Napi::Promise::Deferred deferred;
72-
ustring hash;
72+
ustring hash = {};
7373

7474
ustring plain;
7575
ustring salt;

0 commit comments

Comments
 (0)