changeset 26373:30cc73d99789

Fix a bunch of memsets.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 19 Mar 2009 01:28:34 +0000
parents 44684f0d2e42
children 327102f2ce64
files libpurple/protocols/jabber/jingle/content.c libpurple/protocols/jabber/jingle/iceudp.c libpurple/protocols/jabber/jingle/rawudp.c libpurple/protocols/jabber/jingle/session.c libpurple/protocols/jabber/jingle/transport.c
diffstat 5 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/content.c	Thu Mar 19 00:58:55 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/content.c	Thu Mar 19 01:28:34 2009 +0000
@@ -152,7 +152,7 @@
 jingle_content_init (JingleContent *content)
 {
 	content->priv = JINGLE_CONTENT_GET_PRIVATE(content);
-	memset(content->priv, 0, sizeof(content->priv));
+	memset(content->priv, 0, sizeof(*content->priv));
 }
 
 static void
--- a/libpurple/protocols/jabber/jingle/iceudp.c	Thu Mar 19 00:58:55 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/iceudp.c	Thu Mar 19 01:28:34 2009 +0000
@@ -177,7 +177,8 @@
 jingle_iceudp_init (JingleIceUdp *iceudp)
 {
 	iceudp->priv = JINGLE_ICEUDP_GET_PRIVATE(iceudp);
-	memset(iceudp->priv, 0, sizeof(iceudp->priv));
+	iceudp->priv->local_candidates = NULL;
+	iceudp->priv->remote_candidates = NULL;
 }
 
 static void
--- a/libpurple/protocols/jabber/jingle/rawudp.c	Thu Mar 19 00:58:55 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/rawudp.c	Thu Mar 19 01:28:34 2009 +0000
@@ -149,7 +149,8 @@
 jingle_rawudp_init (JingleRawUdp *rawudp)
 {
 	rawudp->priv = JINGLE_RAWUDP_GET_PRIVATE(rawudp);
-	memset(rawudp->priv, 0, sizeof(rawudp->priv));
+	rawudp->priv->local_candidates = NULL;
+	rawudp->priv->remote_candidates = NULL;
 }
 
 static void
--- a/libpurple/protocols/jabber/jingle/session.c	Thu Mar 19 00:58:55 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/session.c	Thu Mar 19 01:28:34 2009 +0000
@@ -154,7 +154,7 @@
 jingle_session_init (JingleSession *session)
 {
 	session->priv = JINGLE_SESSION_GET_PRIVATE(session);
-	memset(session->priv, 0, sizeof(session->priv));
+	memset(session->priv, 0, sizeof(*session->priv));
 }
 
 static void
--- a/libpurple/protocols/jabber/jingle/transport.c	Thu Mar 19 00:58:55 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/transport.c	Thu Mar 19 01:28:34 2009 +0000
@@ -89,7 +89,7 @@
 jingle_transport_init (JingleTransport *transport)
 {
 	transport->priv = JINGLE_TRANSPORT_GET_PRIVATE(transport);
-	memset(transport->priv, 0, sizeof(transport->priv));
+	transport->priv->dummy = NULL;
 }
 
 static void