comparison libpurple/protocols/jabber/message.c @ 24866:fec1e38cb330

Fix a compiler warning: message.c: In function ¡Æhandle_buzz¡Ç: message.c:317: warning: ¡Æstr¡Ç may be used uninitialized in this function
author Richard Laager <rlaager@wiktel.com>
date Fri, 02 Jan 2009 22:41:11 +0000
parents 689cfb82242e
children a50545e37a7a 1d1d1829de11 c56debe9ae4f 533a51295cbb af5c36fe8d6f
comparison
equal deleted inserted replaced
24865:b26e8a41a937 24866:fec1e38cb330
288 288
289 static void handle_buzz(JabberMessage *jm) { 289 static void handle_buzz(JabberMessage *jm) {
290 PurpleBuddy *buddy; 290 PurpleBuddy *buddy;
291 PurpleAccount *account; 291 PurpleAccount *account;
292 PurpleConversation *c; 292 PurpleConversation *c;
293 char *username, *str; 293 char *username;
294 294
295 /* Delayed buzz MUST NOT be accepted */ 295 /* Delayed buzz MUST NOT be accepted */
296 if(jm->delayed) 296 if(jm->delayed)
297 return; 297 return;
298 298
312 username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1); 312 username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1);
313 /* xmpp only has 1 attention type, so index is 0 */ 313 /* xmpp only has 1 attention type, so index is 0 */
314 purple_prpl_got_attention(jm->js->gc, username, 0); 314 purple_prpl_got_attention(jm->js->gc, username, 0);
315 315
316 g_free(username); 316 g_free(username);
317 g_free(str);
318 } 317 }
319 318
320 /* used internally by the functions below */ 319 /* used internally by the functions below */
321 typedef struct { 320 typedef struct {
322 gchar *cid; 321 gchar *cid;