X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=ae2383459db9f54ae78383cf21cdf2f0f9e8c37f;hb=06d7fbe8bb299e76cac532378e7b1999495979dc;hp=59903686419d921346e764723ce367ac5b00fa29;hpb=1c8181111fae3d36cd8c901f659f6d6e6a6759d4;p=collectd.git diff --git a/src/curl.c b/src/curl.c index 59903686..ae238345 100644 --- a/src/curl.c +++ b/src/curl.c @@ -585,7 +585,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 */