curl_json plugin: Fix handling of arrays.
[collectd.git] / src / curl_json.c
index 0527dc8..248b91b 100644 (file)
@@ -279,7 +279,7 @@ static int cj_cb_start_array (void * ctx)
 
 static int cj_cb_end_array (void * ctx)
 {
-  return cj_cb_start (ctx);
+  return cj_cb_end (ctx);
 }
 
 static yajl_callbacks ycallbacks = {