From 6acfed07f06eb7dae26ebd77d214d2883cd7f131 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 31 Mar 2019 22:59:38 +0200 Subject: [PATCH] influxdb: fix segfault --- lib/nodes/influxdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodes/influxdb.c b/lib/nodes/influxdb.c index 5b4b77594..bc98c2dfb 100644 --- a/lib/nodes/influxdb.c +++ b/lib/nodes/influxdb.c @@ -43,7 +43,7 @@ int influxdb_parse(struct node *n, json_t *json) char *tmp, *host, *port, *lasts; const char *server, *key; - ret = json_unpack_ex(json, &err, 0, "{ s: s, s: s, s?: o }", + ret = json_unpack_ex(json, &err, 0, "{ s: s, s: s }", "server", &server, "key", &key );