From c0f33f1ea6aa05543b81f4eb0b9cc3a11446f996 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 11 Jun 2011 18:50:26 +0100 Subject: 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. --- protocols/twitter/twitter_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/twitter/twitter_lib.c') 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; } -- cgit v1.2.3