From 14d0b021045b5d92939a795fc244f0b12a66726a Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 25 Dec 2012 01:08:33 +0100 Subject: I suck. This will teach me not to combine logging and actual work in silly ways. --- protocols/twitter/twitter_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 3ff4b8fc..a8cc9d04 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -780,7 +780,7 @@ static void twitter_http_stream(struct http_request *req) c = req->reply_body[len]; req->reply_body[len] = '\0'; - if (parsed) { + if ((parsed = json_parse(req->reply_body))) { twitter_stream_handle_object(ic, parsed); } json_value_free(parsed); -- cgit v1.2.3