From: Florian Forster Date: Sun, 11 Feb 2007 11:39:46 +0000 (+0100) Subject: {email,multimeter,users} plugin: Don't pass NULL-pointers to `plugin_submit'. X-Git-Tag: collectd-3.11.2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9e346f9380f34425392c93ca2b04d31bb2f44d50;p=collectd.git {email,multimeter,users} plugin: Don't pass NULL-pointers to `plugin_submit'. --- diff --git a/src/email.c b/src/email.c index 509eb230..bbee9bb6 100644 --- a/src/email.c +++ b/src/email.c @@ -775,7 +775,7 @@ static void score_submit (double value) if ((len < 0) || (len >= BUFSIZE)) return; - plugin_submit ("email_spam_score", NULL, buf); + plugin_submit ("email_spam_score", "-", buf); return; } /* static void score_submit (double) */ diff --git a/src/multimeter.c b/src/multimeter.c index 317745b2..46438bf3 100644 --- a/src/multimeter.c +++ b/src/multimeter.c @@ -214,7 +214,7 @@ static void multimeter_submit (double *value) if (snprintf (buf, BUFSIZE, "%u:%f", (unsigned int) curtime, *value) >= BUFSIZE) return; - plugin_submit (MODULE_NAME, NULL, buf); + plugin_submit (MODULE_NAME, "-", buf); } #undef BUFSIZE diff --git a/src/users.c b/src/users.c index 08fc4fd7..973fda0a 100644 --- a/src/users.c +++ b/src/users.c @@ -74,7 +74,7 @@ static void users_submit (unsigned int users) return; } - plugin_submit(MODULE_NAME, NULL, buf); + plugin_submit(MODULE_NAME, "-", buf); return; } /* static void users_submit(unsigned int users) */ #undef BUFSIZE