Adding default values to initializer
This commit is contained in:
parent
c639359a4a
commit
fab73441ef
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ struct EphemeralPrivateKey* libp2p_crypto_ephemeral_key_new() {
|
|||
results->public_key->bytes_size = 0;
|
||||
results->public_key->shared_key = NULL;
|
||||
results->public_key->shared_key_size = 0;
|
||||
results->public_key->num_bits = 0;
|
||||
results->public_key->x = 0;
|
||||
results->public_key->y = 0;
|
||||
}
|
||||
}
|
||||
return results;
|
||||
|
|
Loading…
Reference in a new issue