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.4.2~26^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=276590a0c2affb5c65798e6446a796b359770142;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);