From 95c65d827f3d75657bac91755e1bdbaeb8b4b91a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 24 Sep 2010 11:52:52 +0200 Subject: [PATCH] curl_json plugin: Restore struct when handling error. --- src/curl_json.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.11.0