pidgin: 44f22ed3: Silence some warnings from gcc on OS X. ...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Jun 28 02:40:36 EDT 2009


-----------------------------------------------------------------
Revision: 44f22ed3f605bbfddb786f5aa0045ecda102339f
Ancestor: 8bbb74e38dc599f8e2c385755bb9047e97785a05
Author: darkrain42 at pidgin.im
Date: 2009-06-28T06:21:28
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/44f22ed3f605bbfddb786f5aa0045ecda102339f

Modified files:
        libpurple/protocols/oscar/clientlogin.c
        libpurple/protocols/oscar/family_icbm.c

ChangeLog: 

Silence some warnings from gcc on OS X. None of these were actually valid.

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/clientlogin.c	ab1270de2587b433d6b8f7d9d0d63593201aeccd
+++ libpurple/protocols/oscar/clientlogin.c	87bcb6becc342bda8c438824aa510d62f1da1815
@@ -138,7 +138,7 @@ static gboolean parse_start_oscar_sessio
 static gboolean parse_start_oscar_session_response(PurpleConnection *gc, const gchar *response, gsize response_len, char **host, unsigned short *port, char **cookie)
 {
 	xmlnode *response_node, *tmp_node, *data_node;
-	xmlnode *host_node, *port_node, *cookie_node;
+	xmlnode *host_node = NULL, *port_node = NULL, *cookie_node = NULL;
 	char *tmp;
 
 	/* Parse the response as XML */
@@ -321,7 +321,7 @@ static gboolean parse_client_login_respo
 static gboolean parse_client_login_response(PurpleConnection *gc, const gchar *response, gsize response_len, char **token, char **secret, time_t *hosttime)
 {
 	xmlnode *response_node, *tmp_node, *data_node;
-	xmlnode *secret_node, *hosttime_node, *token_node, *tokena_node;
+	xmlnode *secret_node = NULL, *hosttime_node = NULL, *token_node = NULL, *tokena_node = NULL;
 	char *tmp;
 
 	/* Parse the response as XML */
============================================================
--- libpurple/protocols/oscar/family_icbm.c	24c82a9fc79bf2f79be44735c72f2efd49e69c0f
+++ libpurple/protocols/oscar/family_icbm.c	b134407f14229d10bd0e4d010288f41793c55230
@@ -1566,7 +1566,7 @@ static int incomingim_ch1(OscarData *od,
 
 static int incomingim_ch1(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, guint16 channel, aim_userinfo_t *userinfo, ByteStream *bs, guint8 *cookie)
 {
-	guint16 type, length, magic1, msglen;
+	guint16 type, length, magic1, msglen = 0;
 	aim_rxcallback_t userfunc;
 	int ret = 0;
 	int rev = 0;


More information about the Commits mailing list