out_es: remove unused variable (CID 185753)
@@ -136,7 +136,7 @@ static char *elasticsearch_format(const void *data, size_t bytes,
int len;
int map_size;
int index_len = 0;
- size_t s;
+ size_t s = 0;
size_t off = 0;
char *p;
char *buf;
@@ -215,7 +215,7 @@ static char *elasticsearch_format(const void *data, size_t bytes,
if (ctx->logstash_format == FLB_FALSE && ctx->generate_id == FLB_FALSE) {
flb_time_get(&tms);
gmtime_r(&tms.tm.tv_sec, &tm);
- s = strftime(index_formatted, sizeof(index_formatted) - 1,
+ strftime(index_formatted, sizeof(index_formatted) - 1,
ctx->index, &tm);
es_index = index_formatted;
