diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-01-17 22:48:32 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-01-17 22:48:32 +0000 |
commit | ac4adf9a546c2e9b247b9de4b753177e6bd479e4 (patch) | |
tree | c5a53333e697fabbd203fb16905c395c5019204f | |
parent | 52744f8f65a278a59a8903d5c594e057d63c7006 (diff) |
Apparently ext_yahoo_got_im can be called with msg=NULL, so it should be
handled. Let's just ignore those packets.
-rw-r--r-- | protocols/yahoo/yahoo.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c index d413597a..9f9ffcf7 100644 --- a/protocols/yahoo/yahoo.c +++ b/protocols/yahoo/yahoo.c @@ -623,10 +623,14 @@ void ext_yahoo_status_changed( int id, const char *who, int stat, const char *ms void ext_yahoo_got_im( int id, const char *me, const char *who, const char *msg, long tm, int stat, int utf8 ) { struct im_connection *ic = byahoo_get_ic_by_id( id ); - char *m = byahoo_strip( msg ); + char *m; - imcb_buddy_msg( ic, (char*) who, (char*) m, 0, 0 ); - g_free( m ); + if( msg ) + { + m = byahoo_strip( msg ); + imcb_buddy_msg( ic, (char*) who, (char*) m, 0, 0 ); + g_free( m ); + } } void ext_yahoo_got_file( int id, |