If the --host argument did not contain a valid hostname to contact to, a
segmentation fault was raised because the return value from oauth_http_post and
oauth_http_get was not being properly checked.
+ 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);
if ((session->action != ACTION_UPDATE) &&
(session->action != ACTION_RETWEET))
parse_timeline(reply, session);