From 9e346f9380f34425392c93ca2b04d31bb2f44d50 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 11 Feb 2007 12:39:46 +0100 Subject: [PATCH] {email,multimeter,users} plugin: Don't pass NULL-pointers to `plugin_submit'. --- src/email.c | 2 +- src/multimeter.c | 2 +- src/users.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.11.0