Skip to content

Commit

Permalink
Explicitly initialize hash in Argon2Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt committed Feb 21, 2024
1 parent efff87c commit 2d7549b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argon2_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class HashWorker final : public Napi::AsyncWorker {
using ustring = std::basic_string<uint8_t>;

Napi::Promise::Deferred deferred;
ustring hash;
ustring hash = {};

ustring plain;
ustring salt;
Expand Down

0 comments on commit 2d7549b

Please sign in to comment.