diff --git a/src/target_scale.c b/src/target_scale.c
index 3ac399c904bcbafff2a803dc06bb6ee015d0485c..579d01a03c3908b0e5b8e85e5316ce1815a6f8c2 100644 (file)
--- a/src/target_scale.c
+++ b/src/target_scale.c
/* Allocate space for the char pointers */
new_data_sources_num = data->data_sources_num + ((size_t) ci->values_num);
/* Allocate space for the char pointers */
new_data_sources_num = data->data_sources_num + ((size_t) ci->values_num);
- temp = (char **) realloc (data->data_sources,
+ temp = realloc (data->data_sources,
new_data_sources_num * sizeof (char *));
if (temp == NULL)
{
new_data_sources_num * sizeof (char *));
if (temp == NULL)
{
void module_register (void)
{
void module_register (void)
{
- target_proc_t tproc;
+ target_proc_t tproc = { 0 };
- memset (&tproc, 0, sizeof (tproc));
tproc.create = ts_create;
tproc.destroy = ts_destroy;
tproc.invoke = ts_invoke;
tproc.create = ts_create;
tproc.destroy = ts_destroy;
tproc.invoke = ts_invoke;