index 145cd107c771b7330bcd20fa18e737a810e76000..669ef837b94fa6ff5ae0678f249ddebbe25088b5 100644 (file)
--- a/src/utils_cmd_putnotif.c
+++ b/src/utils_cmd_putnotif.c
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
@@ -119,7 +120,7 @@ static int set_option (notification_t *n, const char *option, const char *value)
int handle_putnotif (FILE *fh, char *buffer)
{
char *command;
- notification_t n;
+ notification_t n = { 0 };
int status;
if ((fh == NULL) || (buffer == NULL))
return (-1);
}
- memset (&n, '\0', sizeof (n));
-
status = 0;
while (*buffer != 0)
{