{email,multimeter,users} plugin: Don't pass NULL-pointers to `plugin_submit'.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 11 Feb 2007 11:39:46 +0000 (12:39 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 11 Feb 2007 11:39:46 +0000 (12:39 +0100)
src/email.c
src/multimeter.c
src/users.c

index 509eb23..bbee9bb 100644 (file)
@@ -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) */
 
index 317745b..46438bf 100644 (file)
@@ -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
 
index 08fc4fd..973fda0 100644 (file)
@@ -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