Mercurial > pidgin-twitter
changeset 350:059e962ee26a
check if string is null
author | Yoshiki Yazawa <[email protected]> |
---|---|
date | Sat, 10 Apr 2010 03:29:28 +0900 |
parents | 6c8cae68a84e |
children | 20fe2a2b677e |
files | util.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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;