Skip to content

Commit

Permalink
Fix CID 1567815: Uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Jan 30, 2025
1 parent 9af62ce commit 2c1e39d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/crypto/elgamal.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ class Encrypted {

class Key {
public:
mpi p;
mpi g;
mpi y;
mpi p{};
mpi g{};
mpi y{};
/* secret mpi */
mpi x;
mpi x{};

void
clear_secret()
Expand Down

0 comments on commit 2c1e39d

Please sign in to comment.