changeset 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 bb8ad59ae9c4
children ddd3c6e238fe
files libpurple/protocols/gg/lib/pubdir50.c libpurple/protocols/yahoo/yahoo.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <stdlib.h>
 #include <string.h>
 #include <time.h>
+#include <glib.h>
 
 #include "libgadu.h"
 
--- 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) {