projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/Makefile: Don't set subdir-objects.
[collectd.git]
/
src
/
threshold.c
diff --git
a/src/threshold.c
b/src/threshold.c
index
ed83129
..
e849b1d
100644
(file)
--- a/
src/threshold.c
+++ b/
src/threshold.c
@@
-70,7
+70,7
@@
static int ut_threshold_add (const threshold_t *th)
return (-1);
}
return (-1);
}
- th_copy =
(threshold_t *) malloc (sizeof (threshold_t
));
+ th_copy =
malloc (sizeof (*th_copy
));
if (th_copy == NULL)
{
sfree (name_copy);
if (th_copy == NULL)
{
sfree (name_copy);
@@
-78,7
+78,6
@@
static int ut_threshold_add (const threshold_t *th)
return (-1);
}
memcpy (th_copy, th, sizeof (threshold_t));
return (-1);
}
memcpy (th_copy, th, sizeof (threshold_t));
- th_ptr = NULL;
DEBUG ("ut_threshold_add: Adding entry `%s'", name);
DEBUG ("ut_threshold_add: Adding entry `%s'", name);