X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=ffd4901763c280068b70b19809ddfbec408fe80f;hb=8e9bdd5a63e67c6adb403c2aac4a25e0595ea147;hp=c6e2ae9c1f521350db159dc2922dafcb6fb54f41;hpb=38e2d0eff79464e4b9686e135a184411d9307db7;p=collectd.git diff --git a/src/curl.c b/src/curl.c index c6e2ae9c..ffd49017 100644 --- a/src/curl.c +++ b/src/curl.c @@ -612,7 +612,8 @@ static void cc_submit (const web_page_t *wp, const web_match_t *wm, /* {{{ */ sstrncpy (vl.plugin, "curl", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, wp->instance, sizeof (vl.plugin_instance)); sstrncpy (vl.type, wm->type, sizeof (vl.type)); - sstrncpy (vl.type_instance, wm->instance, sizeof (vl.type_instance)); + if (wm->instance != NULL) + sstrncpy (vl.type_instance, wm->instance, sizeof (vl.type_instance)); plugin_dispatch_values (&vl); } /* }}} void cc_submit */