diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-06-11 18:50:26 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-06-11 18:50:26 +0100 |
commit | c0f33f1ea6aa05543b81f4eb0b9cc3a11446f996 (patch) | |
tree | 47cbbe3a19bbf591c6f6405a9aafda7faba95a73 /protocols/twitter/twitter_lib.c | |
parent | de923d59e15bb650c2cb98a6254c79aa7c6af96e (diff) |
Change the default base_url to something that works. Change the default for
identi.ca to HTTPS while I'm at it. Pretty important since I can't use OAuth
for it yet.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index cc817d45..14e98c53 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -143,7 +143,7 @@ char *twitter_parse_error(struct http_request *req) { static char *ret = NULL; struct xt_parser *xp = NULL; - struct xt_node *node; + struct xt_node *node, *err; g_free(ret); ret = NULL; @@ -153,8 +153,8 @@ char *twitter_parse_error(struct http_request *req) xt_feed(xp, req->reply_body, req->body_size); for (node = xp->root; node; node = node->next) - if ((node = xt_find_node(node->children, "error")) && node->text_len > 0) { - ret = g_strdup_printf("%s (%s)", req->status_string, node->text); + if ((err = xt_find_node(node->children, "error")) && err->text_len > 0) { + ret = g_strdup_printf("%s (%s)", req->status_string, err->text); break; } |