changeset 27200:a2508ac2e536

Silence some warnings from gcc on OS X. None of these were actually valid.
author Paul Aurich <paul@darkrain42.org>
date Sun, 28 Jun 2009 06:21:28 +0000
parents 67c992cc4b3c
children 702ebcb059fd
files libpurple/protocols/oscar/clientlogin.c libpurple/protocols/oscar/family_icbm.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/clientlogin.c	Sun Jun 28 01:03:07 2009 +0000
+++ b/libpurple/protocols/oscar/clientlogin.c	Sun Jun 28 06:21:28 2009 +0000
@@ -138,7 +138,7 @@
 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_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 */
--- a/libpurple/protocols/oscar/family_icbm.c	Sun Jun 28 01:03:07 2009 +0000
+++ b/libpurple/protocols/oscar/family_icbm.c	Sun Jun 28 06:21:28 2009 +0000
@@ -1566,7 +1566,7 @@
 
 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;