1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

influxdb: fix segfault

This commit is contained in:
Steffen Vogel 2019-03-31 22:59:38 +02:00
parent 95b42a509e
commit 6acfed07f0

View file

@ -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
);