From: Marek Becka Date: Wed, 10 Jun 2015 01:33:36 +0000 (-0400) Subject: tail plugin: initialize user_data_t X-Git-Tag: collectd-5.5.1~128 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44983676cfe657cd0a2d9499bc67961013a15e43;p=collectd.git tail plugin: initialize user_data_t --- diff --git a/src/tail.c b/src/tail.c index ab063389..9ae4139a 100644 --- a/src/tail.c +++ b/src/tail.c @@ -342,6 +342,8 @@ static int ctail_init (void) return (-1); } + memset(&ud, '\0', sizeof(ud)); + for (i = 0; i < tail_match_list_num; i++) { ud.data = (void *)tail_match_list[i];