X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcurl_json.c;h=0527dc8d772ef0cce5952aac2a60f11cbb62f209;hp=21deed61a1e1192ca12bfdf11208a0de4582c461;hb=171d6a4bd5e05b56be83860701d35bfe1373d6a7;hpb=72c467f5e8be1a24976d0808a8bdcaa85c6ef9d9 diff --git a/src/curl_json.c b/src/curl_json.c index 21deed61..0527dc8d 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -764,6 +764,7 @@ static int cj_curl_perform (cj_t *db, CURL *curl) /* {{{ */ if (db->yajl == NULL) { ERROR ("curl_json plugin: yajl_alloc failed."); + db->yajl = yprev; return (-1); }