From: jbergstroem Date: Wed, 24 Aug 2011 14:25:29 +0000 (+0200) Subject: Correct a missing yajl1/2 check X-Git-Tag: collectd-5.0.1~7 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=0471475841a912322c50200c5fb7a45b790ad576;p=collectd.git Correct a missing yajl1/2 check Change-Id: Ie3e0380721d88e54cb5630e1c3ecb613790b32b3 --- diff --git a/src/curl_json.c b/src/curl_json.c index 988ed58d..857e276b 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -763,7 +763,11 @@ static int cj_curl_perform (cj_t *db, CURL *curl) /* {{{ */ return (-1); } - status = yajl_parse_complete (db->yajl); +#if HAVE_YAJL_V2 + status = yajl_complete_parse(db->yajl); +#else + status = yajl_parse_complete(db->yajl); +#endif if (status != yajl_status_ok) { unsigned char *errmsg;