changeset 26245:2cc85ecc27ef

initialize *pkt to NULL, remove a warning from the compiler
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Tue, 20 Jan 2009 18:08:36 +0000
parents 0a19fa42f8ce
children 1e02d4592894
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Tue Jan 20 17:44:36 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Tue Jan 20 18:08:36 2009 +0000
@@ -4435,7 +4435,7 @@
 static int yahoo_send_im(PurpleConnection *gc, const char *who, const char *what, PurpleMessageFlags flags)
 {
 	struct yahoo_data *yd = gc->proto_data;
-	struct yahoo_packet *pkt;
+	struct yahoo_packet *pkt = NULL;
 	char *msg = yahoo_html_to_codes(what);
 	char *msg2;
 	gboolean utf8 = TRUE;