Merge branch 'ym/target_set_add_meta' of github.com:ymettier/collectd into target_set...
authorKevin Bowling <kbowling@llnw.com>
Wed, 6 Apr 2016 06:20:48 +0000 (23:20 -0700)
committerKevin Bowling <kbowling@llnw.com>
Wed, 6 Apr 2016 06:20:48 +0000 (23:20 -0700)
1  2 
src/collectd.conf.pod
src/daemon/meta_data.c
src/target_set.c

Simple merge
@@@ -109,12 -111,12 +110,14 @@@ static meta_entry_t *md_entry_clone_con
  {
    meta_entry_t *copy;
  
-   if (orig == NULL)
-     return (NULL);
+   /* WARNINGS :
+    *  - we do not check that orig != NULL here. You should have done it before.
+    *  - we do not set copy->next. DO NOT FORGET TO SET copy->next IN YOUR FUNCTION
+    */
  
    copy = md_entry_alloc (orig->key);
 +  if (copy == NULL)
 +    return (NULL);
    copy->type = orig->type;
    if (copy->type == MD_TYPE_STRING)
      copy->value.mv_string = strdup (orig->value.mv_string);
Simple merge