aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/influxdb.h
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-10 19:04:05 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:41:15 +0200
commitc4f2ac294b49c6025d65bec5e8d94a6f52247e34 (patch)
tree097387468b9b7e824608fd2e2b0349414f20e568 /src/plugins/influxdb.h
parentc2fd0d8ab4d3648f7a9807b7dc9e8c2612df1448 (diff)
Fix compilation error 'unitialized variable'
Change-Id: I5add16da1851262268eca5f71ee793cbb6ef62dc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/plugins/influxdb.h')
-rw-r--r--src/plugins/influxdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/influxdb.h b/src/plugins/influxdb.h
index 8fb734d..cd7b222 100644
--- a/src/plugins/influxdb.h
+++ b/src/plugins/influxdb.h
@@ -65,7 +65,7 @@ static inline int should_escape(char c, bool quoteOnly)
*/
static inline char* escape_chr(const char* src, bool quoteOnly)
{
- int j, i = 0;
+ int j = 0, i = 0;
size_t len, src_len;
char* res;