From 3383fbc56d1316d69fd2bd05b1ae3df614743e3c Mon Sep 17 00:00:00 2001 From: Amir Mohammad Saied Date: Thu, 31 Dec 2009 13:54:36 +0330 Subject: [PATCH] If there's no host specified, the session host is already pointing to twitter, but hosturl is empty --- bti.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bti.c b/bti.c index a9a6d43..b708272 100644 --- a/bti.c +++ b/bti.c @@ -338,6 +338,9 @@ static int send_request(struct session *session) if (!curl) return -EINVAL; + if (!session->hosturl) + session->hosturl = strdup(twitter_host); + switch (session->action) { case ACTION_UPDATE: snprintf(user_password, sizeof(user_password), "%s:%s", -- 2.39.5