projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
gmond.c
diff --git
a/src/gmond.c
b/src/gmond.c
index
f86d8f7
..
1aa95d5
100644
(file)
--- a/
src/gmond.c
+++ b/
src/gmond.c
@@
-454,10
+454,9
@@
static staging_entry_t *staging_entry_get (const char *host, /* {{{ */
return (se);
/* insert new entry */
return (se);
/* insert new entry */
- se =
(staging_entry_t *) malloc (
sizeof (*se));
+ se =
calloc (1,
sizeof (*se));
if (se == NULL)
return (NULL);
if (se == NULL)
return (NULL);
- memset (se, 0, sizeof (*se));
sstrncpy (se->key, key, sizeof (se->key));
se->flags = 0;
sstrncpy (se->key, key, sizeof (se->key));
se->flags = 0;
@@
-913,7
+912,7
@@
static int mc_receive_thread_stop (void) /* {{{ */
return (0);
} /* }}} int mc_receive_thread_stop */
return (0);
} /* }}} int mc_receive_thread_stop */
-/*
+/*
* Config:
*
* <Plugin gmond>
* Config:
*
* <Plugin gmond>