Code

curl_json plugin: Restore struct when handling error.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 24 Sep 2010 09:52:52 +0000 (11:52 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 24 Sep 2010 09:52:52 +0000 (11:52 +0200)
src/curl_json.c

index e34f90aa5346148eb69376de89f8bbd4440d44e0..0cf72ac3a10879c7d22d9f5e546aa20038eaaa54 100644 (file)
@@ -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);
   }