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
Этот коммит содержится в:
родитель
9ff4afa523
Коммит
ff0f8b7608
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -487,7 +487,7 @@ CRYPTO *crypto_new(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(crypto);
|
||||
memset(crypto, 0, sizeof(CRYPTO));
|
||||
|
||||
return crypto;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user