From: Florian Forster Date: Wed, 2 Nov 2016 08:04:00 +0000 (+0100) Subject: src/daemon/utils_tail_match.c: Use match_value_reset(). X-Git-Tag: collectd-5.7.0~38 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7aa46a8e912feef20c2bb1e614f2d4e4e1639493;p=collectd.git src/daemon/utils_tail_match.c: Use match_value_reset(). --- diff --git a/src/daemon/utils_tail_match.c b/src/daemon/utils_tail_match.c index 377336f6..99d5decb 100644 --- a/src/daemon/utils_tail_match.c +++ b/src/daemon/utils_tail_match.c @@ -98,12 +98,7 @@ static int simple_submit_match (cu_match_t *match, void *user_data) vl.interval = data->interval; plugin_dispatch_values (&vl); - if (match_value->ds_type & UTILS_MATCH_DS_TYPE_GAUGE) - { - match_value->value.gauge = NAN; - match_value->values_num = 0; - } - + match_value_reset (match_value); return (0); } /* int simple_submit_match */