Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/yahoo_packet.c @ 27800:85d5b6c06a6c
propagate from branch 'im.pidgin.pidgin' (head 33bd2430510196431b931ccb1fa0b55777482dd0)
to branch 'im.pidgin.pidgin.yaz' (head 5426ea7b0587a996037bc668698aea554c01356e)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 17 Mar 2008 06:32:52 +0000 |
parents | 3225c99785b8 acfa3f8727cd |
children | b99bc0b58a02 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_packet.c Mon Mar 17 06:14:38 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo_packet.c Mon Mar 17 06:32:52 2008 +0000 @@ -42,6 +42,7 @@ { struct yahoo_pair *pair; + g_return_if_fail(pkt != NULL); g_return_if_fail(value != NULL); pair = g_new0(struct yahoo_pair, 1); @@ -54,6 +55,8 @@ { struct yahoo_pair *pair; + g_return_if_fail(pkt != NULL); + pair = g_new0(struct yahoo_pair, 1); pair->key = key; pair->value = g_strdup_printf("%d", value); @@ -387,6 +390,9 @@ { int ret; + g_return_val_if_fail(pkt != NULL, 0); + g_return_val_if_fail(yd != NULL, 0); + ret = yahoo_packet_send(pkt, yd); yahoo_packet_free(pkt); return ret;