Mercurial > pidgin-twitter
diff util.c @ 350:059e962ee26a
check if string is null
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 10 Apr 2010 03:29:28 +0900 |
parents | 33d2551727ba |
children | f60ee22c1ac8 |
line wrap: on
line diff
--- a/util.c Mon Apr 05 00:02:44 2010 +0900 +++ b/util.c Sat Apr 10 03:29:28 2010 +0900 @@ -564,7 +564,8 @@ msg_id_str = g_match_info_fetch(match_info, 1); in_reply_to_status_id_str = g_match_info_fetch(match_info, 2); - in_reply_to_status_id = strtoull(in_reply_to_status_id_str, NULL, 10); + if(in_reply_to_status_id_str) + in_reply_to_status_id = strtoull(in_reply_to_status_id_str, NULL, 10); g_free(in_reply_to_status_id_str); in_reply_to_status_id_str = NULL;