1
1

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
Этот коммит содержится в:
Andreas Schneider 2009-04-01 22:33:35 +00:00
родитель 9ff4afa523
Коммит ff0f8b7608
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;
}