diff --git a/src/sigrok.c b/src/sigrok.c
index 400645538d7d842f5d47f422f1347a2be5d7112d..5b850040f30b4f324e29480172b402e7d55a3ea6 100644 (file)
--- a/src/sigrok.c
+++ b/src/sigrok.c
{
const struct sr_datafeed_analog *analog;
struct config_device *cfdev;
- value_t value;
value_list_t vl = VALUE_LIST_INIT;
/* Find this device's configuration. */
/* Ignore all but the first sample on the first probe. */
analog = packet->payload;
- value.gauge = analog->data[0];
- vl.values = &value;
+ vl.values = &(value_t) { .gauge = analog->data[0] };
vl.values_len = 1;
sstrncpy(vl.host, hostname_g, sizeof(vl.host));
sstrncpy(vl.plugin, "sigrok", sizeof(vl.plugin));