projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
amqp, write_graphite and write_kafka plugins: Implement the "[Graphite]PreserveSepara...
[collectd.git]
/
src
/
utils_cmd_putnotif.c
diff --git
a/src/utils_cmd_putnotif.c
b/src/utils_cmd_putnotif.c
index
530d153
..
669ef83
100644
(file)
--- a/
src/utils_cmd_putnotif.c
+++ b/
src/utils_cmd_putnotif.c
@@
-25,10
+25,12
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "utils_parse_option.h"
#include "common.h"
#include "plugin.h"
#include "utils_parse_option.h"
+#include "utils_cmd_putnotif.h"
#define print_to_socket(fh, ...) \
do { \
#define print_to_socket(fh, ...) \
do { \
@@
-118,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;
int handle_putnotif (FILE *fh, char *buffer)
{
char *command;
- notification_t n;
+ notification_t n
= { 0 }
;
int status;
if ((fh == NULL) || (buffer == NULL))
int status;
if ((fh == NULL) || (buffer == NULL))
@@
-142,8
+144,6
@@
int handle_putnotif (FILE *fh, char *buffer)
return (-1);
}
return (-1);
}
- memset (&n, '\0', sizeof (n));
-
status = 0;
while (*buffer != 0)
{
status = 0;
while (*buffer != 0)
{