diff --git a/src/target_set.c b/src/target_set.c
index 73ca49fb8f071f898f328907c4aedb3a20f89ec0..ee068ec3cfcae922826efb035650aac76bb8670e 100644 (file)
--- a/src/target_set.c
+++ b/src/target_set.c
**/
#include "collectd.h"
+
#include "common.h"
#include "filter_chain.h"
};
typedef struct ts_data_s ts_data_t;
-int ts_util_get_key_and_string_wo_strdup (const oconfig_item_t *ci, char **ret_key, char **ret_string) /* {{{ */
+static int ts_util_get_key_and_string_wo_strdup (const oconfig_item_t *ci, char **ret_key, char **ret_string) /* {{{ */
{
if ((ci->values_num != 2)
|| (ci->values[0].type != OCONFIG_TYPE_STRING)
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;