From: Kevin Bowling Date: Wed, 11 Jun 2014 08:44:02 +0000 (-0700) Subject: [METRICS-390] Make sure HostTags is initialized if not configured X-Git-Tag: collectd-5.5.0~223^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f05aee87b3af4c8991448cdf5e9423bf0e0ee3ff;p=collectd.git [METRICS-390] Make sure HostTags is initialized if not configured --- diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 8b10fd61..bf83560c 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -407,6 +407,7 @@ static int wt_send_message (const char* key, const char* value, char *temp = NULL; char *tags = ""; char message[1024]; + char *host_tags = cb->host_tags ? cb->host_tags : ""; const char *message_fmt; const char *meta_tsdb = "tsdb_tags"; @@ -437,7 +438,7 @@ static int wt_send_message (const char* key, const char* value, value, host, tags, - cb->host_tags); + host_tags); sfree(temp);