# HG changeset patch # User Yoshiki Yazawa # Date 1179636571 0 # Node ID 23e95d20597af40fa6d8acf7d0d927a79e3142c4 # Parent bb8ad59ae9c47f5acc94bd275c21f8b699b8eddf - fix compilation error for gg. - add sanity check for yahoo_packet_new(). diff -r bb8ad59ae9c4 -r 23e95d20597a libpurple/protocols/gg/lib/pubdir50.c --- a/libpurple/protocols/gg/lib/pubdir50.c Sun May 20 04:16:11 2007 +0000 +++ b/libpurple/protocols/gg/lib/pubdir50.c Sun May 20 04:49:31 2007 +0000 @@ -22,6 +22,7 @@ #include #include #include +#include #include "libgadu.h" diff -r bb8ad59ae9c4 -r 23e95d20597a libpurple/protocols/yahoo/yahoo.c --- 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) {