ToastFreeware
/
gregoa
/
bti.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
363f9d6
)
If there's no host specified, the session host is already pointing to twitter, but...
author
Amir Mohammad Saied
<amirsaied@gmail.com>
Thu, 31 Dec 2009 10:24:36 +0000
(13:54 +0330)
committer
Amir Mohammad Saied
<amirsaied@gmail.com>
Thu, 31 Dec 2009 10:24:36 +0000
(13:54 +0330)
bti.c
patch
|
blob
|
history
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",