# HG changeset patch # User Yoshiki Yazawa # Date 1270837768 -32400 # Node ID 059e962ee26ad8fda2325161eb698b2767bf84e5 # Parent 6c8cae68a84eef3ac8b772c51931c325561a0b1a check if string is null diff -r 6c8cae68a84e -r 059e962ee26a util.c --- 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;