X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl_json.c;h=0cf72ac3a10879c7d22d9f5e546aa20038eaaa54;hb=95c65d827f3d75657bac91755e1bdbaeb8b4b91a;hp=e34f90aa5346148eb69376de89f8bbd4440d44e0;hpb=5c8d44f831b549cfd6e47db39181fd5a1d9cd5b2;p=collectd.git diff --git a/src/curl_json.c b/src/curl_json.c index e34f90aa..0cf72ac3 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); }