Code

curl_json plugin: Fix "Dead assignment" warning.
authorFlorian Forster <octo@collectd.org>
Thu, 18 Jun 2015 07:16:18 +0000 (09:16 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 18 Jun 2015 07:25:32 +0000 (09:25 +0200)
src/curl_json.c

index 6dec89e518d2515b33c6ba4afc7aafaadbf2506a..ff07e76b54a631b693d345d4d0874b90122daa4b 100644 (file)
@@ -549,7 +549,6 @@ static int cj_config_add_key (cj_t *db, /* {{{ */
       db->tree = cj_avl_create();
 
     tree = db->tree;
-    name = key->path;
     ptr = key->path;
     if (*ptr == '/')
       ++ptr;