From 90669749e3983993c667d40dad6215045139a711 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 23 Oct 2010 04:05:48 +0100 Subject: Fixed some still-leaky code in the MSN incoming status message handling. --- protocols/msn/ns.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols') diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 3622efe0..dd9bff18 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -672,16 +672,16 @@ static int msn_ns_message( struct msn_handler_data *handler, char *msg, int msgl } else if( strcmp( cmd[0], "UBX" ) == 0 ) { - struct xt_node *psm; + struct xt_node *ubx, *psm; char *psm_text = NULL; - psm = xt_from_string( msg ); - if( psm && strcmp( psm->name, "Data" ) == 0 && - ( psm = xt_find_node( psm->children, "PSM" ) ) ) + ubx = xt_from_string( msg ); + if( ubx && strcmp( ubx->name, "Data" ) == 0 && + ( psm = xt_find_node( ubx->children, "PSM" ) ) ) psm_text = psm->text; imcb_buddy_status_msg( ic, cmd[1], psm_text ); - xt_free_node( psm ); + xt_free_node( ubx ); } else if( strcmp( cmd[0], "ADL" ) == 0 ) { -- cgit v1.2.3