projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1816 from octo/grpc-free-iter
[collectd.git]
/
src
/
match_timediff.c
diff --git
a/src/match_timediff.c
b/src/match_timediff.c
index
996201a
..
750817b
100644
(file)
--- a/
src/match_timediff.c
+++ b/
src/match_timediff.c
@@
-26,7
+26,6
@@
#include "collectd.h"
#include "common.h"
#include "collectd.h"
#include "common.h"
-#include "utils_cache.h"
#include "filter_chain.h"
#define SATISFY_ALL 0
#include "filter_chain.h"
#define SATISFY_ALL 0
@@
-52,13
+51,12
@@
static int mt_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
int status;
int i;
int status;
int i;
- m =
(mt_match_t *) malloc (
sizeof (*m));
+ m =
calloc (1,
sizeof (*m));
if (m == NULL)
{
if (m == NULL)
{
- ERROR ("mt_create:
m
alloc failed.");
+ ERROR ("mt_create:
c
alloc failed.");
return (-ENOMEM);
}
return (-ENOMEM);
}
- memset (m, 0, sizeof (*m));
m->future = 0;
m->past = 0;
m->future = 0;
m->past = 0;