diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/influxdb-writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/influxdb-writer.c b/src/plugins/influxdb-writer.c index 677bfd0..3cf37d7 100644 --- a/src/plugins/influxdb-writer.c +++ b/src/plugins/influxdb-writer.c @@ -108,7 +108,7 @@ CURL *make_curl_write_post(AFB_ApiT apiHandle, const char *url, json_object *met } serie = malloc(sizeof(struct series_t)); - post_data = calloc(lpd, sizeof(void*)); + post_data = calloc(lpd + 1, sizeof(void*)); for(i = 0; i < lpd; i++) { memset(serie, 0, sizeof(struct series_t)); |