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 uninitialized variable

This commit is contained in:
Steffen Vogel 2018-09-08 00:05:22 +02:00
parent 6ece88cbd3
commit 969e1525f2

View file

@ -132,7 +132,7 @@ int influxdb_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned
/* Fields */
for (int j = 0; j < smp->length; j++) {
struct signal *sig;
struct signal *sig = (struct signal *) list_at(smp->signals, j);
union signal_data *data = &smp->data[k];
if (sig->type == SIGNAL_TYPE_AUTO || sig->type == SIGNAL_TYPE_COMPLEX) {