mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-03-24 20:40:09 +09:00
wrapper: Use calloc instead of zerostructp
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -154,11 +154,10 @@ struct ssh_crypto_struct *crypto_new(void)
|
||||
{
|
||||
struct ssh_crypto_struct *crypto;
|
||||
|
||||
crypto = malloc(sizeof(struct ssh_crypto_struct));
|
||||
crypto = calloc(1, sizeof(struct ssh_crypto_struct));
|
||||
if (crypto == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
ZERO_STRUCTP(crypto);
|
||||
return crypto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user