Skip to content

Commit

Permalink
Merge branch 'fix-segfault-invalid-host' of https://github.com/agimen…
Browse files Browse the repository at this point in the history
…ez/bti into agimenez-fix-segfault-invalid-host
  • Loading branch information
gregkh committed Feb 18, 2011
2 parents 83a2cb0 + 03e07fd commit 0b6b14f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bti.c
Expand Up @@ -724,6 +724,11 @@ static int send_request(struct session *session)
free(req_url);
}

if (!reply) {
fprintf(stderr, "Error retrieving from URL (%s)\n", endpoint);
return 1;
}

if ((session->action != ACTION_UPDATE) &&
(session->action != ACTION_RETWEET))
parse_timeline(reply, session);
Expand Down

0 comments on commit 0b6b14f

Please sign in to comment.