aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-01 22:33:35 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-01 22:33:35 +0000
commitff0f8b760850a734bc0c92fe1ebc55deeecb5a70 (patch)
tree80586114855cca871670973be101a2a44a421575 /libssh
parent9ff4afa523056b41bd0d2fdd85409a9f23a13a85 (diff)
downloadlibssh-ff0f8b760850a734bc0c92fe1ebc55deeecb5a70.tar.gz
libssh-ff0f8b760850a734bc0c92fe1ebc55deeecb5a70.tar.xz
libssh-ff0f8b760850a734bc0c92fe1ebc55deeecb5a70.zip
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
Diffstat (limited to 'libssh')
-rw-r--r--libssh/buffer.c2
-rw-r--r--libssh/session.c2
-rw-r--r--libssh/wrapper.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libssh/buffer.c b/libssh/buffer.c
index e55f0b8..7e4a80f 100644
--- a/libssh/buffer.c
+++ b/libssh/buffer.c
@@ -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;
}
diff --git a/libssh/session.c b/libssh/session.c
index 7417ae9..4a623bf 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -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) {
diff --git a/libssh/wrapper.c b/libssh/wrapper.c
index fd47c7a..4e94373 100644
--- a/libssh/wrapper.c
+++ b/libssh/wrapper.c
@@ -487,7 +487,7 @@ CRYPTO *crypto_new(void) {
return NULL;
}
- ZERO_STRUCTP(crypto);
+ memset(crypto, 0, sizeof(CRYPTO));
return crypto;
}