diff --git a/src/threshold.c b/src/threshold.c
index ed8312992b437c9984d6885309bc972f1450fb4d..e849b1d8b921fd2da5d7d1f3f98eaf20d7a07e2a 100644 (file)
--- a/src/threshold.c
+++ b/src/threshold.c
return (-1);
}
- th_copy = (threshold_t *) malloc (sizeof (threshold_t));
+ th_copy = malloc (sizeof (*th_copy));
if (th_copy == NULL)
{
sfree (name_copy);
return (-1);
}
memcpy (th_copy, th, sizeof (threshold_t));
- th_ptr = NULL;
DEBUG ("ut_threshold_add: Adding entry `%s'", name);