If there's no host specified, the session host is already pointing to twitter, but...
authorAmir Mohammad Saied <amirsaied@gmail.com>
Thu, 31 Dec 2009 10:24:36 +0000 (13:54 +0330)
committerAmir Mohammad Saied <amirsaied@gmail.com>
Thu, 31 Dec 2009 10:24:36 +0000 (13:54 +0330)
bti.c

diff --git a/bti.c b/bti.c
index a9a6d435bd89a2e7ee34397cf503953d933dd34b..b708272738d4a01a4a2214e30192949b848d41c2 100644 (file)
--- 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",