diff options
author | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-07-26 12:26:58 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@FreeBSD.org> | 2010-07-26 12:26:58 +0000 |
commit | cd32ba84b929b9e6d135a434e33f464ce51f047f (patch) | |
tree | 83412dc3bdce0eaa8bc7ef09a4d89863433bd7d6 /irc/bitlbee | |
parent | 3c1991f7d2c6ce8f74f3cadcd7367298e5f4ecb2 (diff) |
Notes
Diffstat (limited to 'irc/bitlbee')
-rw-r--r-- | irc/bitlbee/Makefile | 1 | ||||
-rw-r--r-- | irc/bitlbee/files/patch-protocols-twitter-twitter_lib.c | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/irc/bitlbee/Makefile b/irc/bitlbee/Makefile index f4aa56edf62a..7b82fcf683a9 100644 --- a/irc/bitlbee/Makefile +++ b/irc/bitlbee/Makefile @@ -7,6 +7,7 @@ PORTNAME= bitlbee PORTVERSION= 1.2.8 +PORTREVISION= 1 CATEGORIES= irc MASTER_SITES= http://get.bitlbee.org/src/ \ ${MASTER_SITE_LOCAL} diff --git a/irc/bitlbee/files/patch-protocols-twitter-twitter_lib.c b/irc/bitlbee/files/patch-protocols-twitter-twitter_lib.c new file mode 100644 index 000000000000..6438938f02c2 --- /dev/null +++ b/irc/bitlbee/files/patch-protocols-twitter-twitter_lib.c @@ -0,0 +1,37 @@ +--- protocols/twitter/twitter_lib.c.orig 2010-07-04 17:26:16.000000000 +0000 ++++ protocols/twitter/twitter_lib.c 2010-07-26 11:39:17.000000000 +0000 +@@ -65,6 +65,8 @@ static void twitter_groupchat_init(struc + */ + static void txu_free(struct twitter_xml_user *txu) + { ++ if (txu == NULL)
++ return;
+ g_free(txu->name); + g_free(txu->screen_name); + g_free(txu); +@@ -88,6 +90,8 @@ static void txs_free(struct twitter_xml_ + static void txl_free(struct twitter_xml_list *txl) + { + GSList *l; ++ if (txl == NULL)
++ return;
+ for ( l = txl->list; l ; l = g_slist_next(l) ) + if (txl->type == TXL_STATUS) + txs_free((struct twitter_xml_status *)l->data); +@@ -472,6 +476,9 @@ static void twitter_groupchat(struct im_ + for ( l = list; l ; l = g_slist_next(l) ) + { + status = l->data; ++ if (status->user == NULL || status->text == NULL)
++ continue;
++
+ twitter_add_buddy(ic, status->user->screen_name, status->user->name); + + strip_html(status->text); +@@ -735,4 +742,4 @@ void twitter_friendships_create_destroy( + args[0] = "screen_name"; + args[1] = who; + twitter_http(ic, create ? TWITTER_FRIENDSHIPS_CREATE_URL : TWITTER_FRIENDSHIPS_DESTROY_URL, twitter_http_post, ic, 1, args, 2); +-} +\ No newline at end of file ++} |