1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-24 19:37:48 +03:00

Use memset cause something is wrong with the macro.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@335 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-01 22:33:35 +00:00
parent 9ff4afa523
commit ff0f8b7608
3 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ struct buffer_struct *buffer_new(void) {
if (buf == NULL) {
return NULL;
}
ZERO_STRUCTP(buf);
memset(buf, 0, sizeof(struct buffer_struct));
return buf;
}

View File

@@ -46,7 +46,7 @@ SSH_SESSION *ssh_new(void) {
return NULL;
}
memset(session, '0', sizeof(SSH_SESSION));
memset(session, 0, sizeof(SSH_SESSION));
session->next_crypto = crypto_new();
if (session->next_crypto == NULL) {

View File

@@ -487,7 +487,7 @@ CRYPTO *crypto_new(void) {
return NULL;
}
ZERO_STRUCTP(crypto);
memset(crypto, 0, sizeof(CRYPTO));
return crypto;
}