pidgin.vv: ac69fb17: Fix a bunch of memsets.

maiku at soc.pidgin.im maiku at soc.pidgin.im
Wed Mar 18 22:35:52 EDT 2009


-----------------------------------------------------------------
Revision: ac69fb17fe00c81a9f3045d7ad6d6b80f97fe916
Ancestor: 1b65f8b9dc7034e2294c475082277484e878c7a2
Author: maiku at soc.pidgin.im
Date: 2009-03-19T01:28:34
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/ac69fb17fe00c81a9f3045d7ad6d6b80f97fe916

Modified 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

ChangeLog: 

Fix a bunch of memsets.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/content.c	5f490424b3559de372e98419ee84f3d351dea082
+++ libpurple/protocols/jabber/jingle/content.c	1124b26c1e1dce1380a9dc2e92365b7027c22a9f
@@ -152,7 +152,7 @@ jingle_content_init (JingleContent *cont
 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
============================================================
--- libpurple/protocols/jabber/jingle/iceudp.c	bdd8d150b8759ea0f969813b714e518768900cd8
+++ libpurple/protocols/jabber/jingle/iceudp.c	9e174b77f255cd922295898f3f21986c627f13d2
@@ -177,7 +177,8 @@ jingle_iceudp_init (JingleIceUdp *iceudp
 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
============================================================
--- libpurple/protocols/jabber/jingle/rawudp.c	10710e6f3c56be9f2b5b3e4899a2f945d5d7c05b
+++ libpurple/protocols/jabber/jingle/rawudp.c	a397a9186db02074755bb2ff2a7cb63df5ec0a71
@@ -149,7 +149,8 @@ jingle_rawudp_init (JingleRawUdp *rawudp
 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
============================================================
--- libpurple/protocols/jabber/jingle/session.c	23ee6c3c312b31bf43e394626e5436b28061dff9
+++ libpurple/protocols/jabber/jingle/session.c	9118d92604a0c0fea256942d98f3d7303520c79d
@@ -154,7 +154,7 @@ jingle_session_init (JingleSession *sess
 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
============================================================
--- libpurple/protocols/jabber/jingle/transport.c	d9b7af2edea8ae0d5269292c522bcfbe7dd6600b
+++ libpurple/protocols/jabber/jingle/transport.c	3361efaa57a6a1847a14729a1f274297969c15b1
@@ -89,7 +89,7 @@ jingle_transport_init (JingleTransport *
 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


More information about the Commits mailing list