projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: Use AF_UNSPEC consistently
[collectd.git]
/
src
/
utils_cmd_putnotif.c
diff --git
a/src/utils_cmd_putnotif.c
b/src/utils_cmd_putnotif.c
index
145cd10
..
956ed74
100644
(file)
--- a/
src/utils_cmd_putnotif.c
+++ b/
src/utils_cmd_putnotif.c
@@
-119,7
+119,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))
@@
-143,8
+143,6
@@
int handle_putnotif (FILE *fh, char *buffer)
return (-1);
}
- memset (&n, '\0', sizeof (n));
-
status = 0;
while (*buffer != 0)
{