Code

{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 509eb2305532c9d1d199ed441640df470cf4316a..bbee9bb699f041a9b4d26bb9019dc0746a85479c 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 317745b285ad1798761ab651bfc1057fd065d0c6..46438bf37beb6566207aede99b388fb2bce7d8d2 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 08fc4fd74d349853be9510ebcc75a689d5623e74..973fda0a57df2bc149cd8fba03e32a26ac4d3121 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