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:
parent
6ece88cbd3
commit
969e1525f2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue