From 276590a0c2affb5c65798e6446a796b359770142 Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Wed, 11 Jun 2014 01:44:02 -0700 Subject: [PATCH] [METRICS-390] Make sure HostTags is initialized if not configured --- src/write_tsdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0