Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/yahoo.c @ 25489:23e95d20597a
- fix compilation error for gg.
- add sanity check for yahoo_packet_new().
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 20 May 2007 04:49:31 +0000 |
parents | e4ee1c5bd51e |
children | f9f2dcea8813 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Sun May 20 04:16:11 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Sun May 20 04:49:31 2007 +0000 @@ -3393,6 +3393,10 @@ } pkt = yahoo_packet_new(YAHOO_SERVICE_Y6_STATUS_UPDATE, YAHOO_STATUS_AVAILABLE, 0); + if(!pkt) { // yaz + purple_debug_info("yahoo", "yahoo_set_idle: pkt == NULL\n"); + return; + } yahoo_packet_hash_int(pkt, 10, yd->current_status); if (yd->current_status == YAHOO_STATUS_CUSTOM) {