Mercurial > pidgin-twitter
diff util.c @ 332:227852ee649c
do not append "in_reply_to_status_id" when msdid is 0.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 13 Oct 2009 03:10:32 +0900 |
parents | b4c846870b3c |
children | 9f78fb6bfc76 |
line wrap: on
line diff
--- a/util.c Tue Oct 13 02:45:03 2009 +0900 +++ b/util.c Tue Oct 13 03:10:32 2009 +0900 @@ -525,9 +525,9 @@ { GMatchInfo *match_info = NULL; gchar *boddy0 = NULL, *boddy = NULL; - gchar *newstr = NULL, *match = NULL; - gchar *linkstr = NULL; - gchar *user = NULL; + gchar *newstr = NULL, *linkstr = NULL; + gchar *match = NULL; + gchar *idstr = NULL, *user = NULL; twitter_debug("called\n"); @@ -555,10 +555,11 @@ g_regex_match(regp[MESSAGE_ID], *str, 0, &match_info); if(match_info) { match = g_match_info_fetch(match_info, 1); + idstr = match ? match : "0"; linkstr = g_strdup_printf(LINK_FORMAT_TWITTER, - match, user, /* Reply */ - match, /* Favorite */ - match, user, boddy); /* Retweet */ + idstr, user, /* Reply */ + idstr, /* Favorite */ + idstr, user, boddy); /* Retweet */ twitter_debug("linkstr = %s\n", linkstr);