Changeset ac4adf9 for protocols


Ignore:
Timestamp:
2008-01-17T22:48:32Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
83ba3e5
Parents:
52744f8
Message:

Apparently ext_yahoo_got_im can be called with msg=NULL, so it should be
handled. Let's just ignore those packets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r52744f8 rac4adf9  
    624624{
    625625        struct im_connection *ic = byahoo_get_ic_by_id( id );
    626         char *m = byahoo_strip( msg );
    627        
    628         imcb_buddy_msg( ic, (char*) who, (char*) m, 0, 0 );
    629         g_free( m );
     626        char *m;
     627       
     628        if( msg )
     629        {
     630                m = byahoo_strip( msg );
     631                imcb_buddy_msg( ic, (char*) who, (char*) m, 0, 0 );
     632                g_free( m );
     633        }
    630634}
    631635
Note: See TracChangeset for help on using the changeset viewer.