rigol-ds: Fix wrong channel group malloc size.
This commit is contained in:
parent
6f1346fbd7
commit
16aca7661b
|
@ -356,7 +356,7 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (devc->model->has_digital) {
|
if (devc->model->has_digital) {
|
||||||
devc->digital_group = g_malloc0(sizeof(struct sr_channel_group*));
|
devc->digital_group = g_malloc0(sizeof(struct sr_channel_group));
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(devc->digital_channels); i++) {
|
for (i = 0; i < ARRAY_SIZE(devc->digital_channels); i++) {
|
||||||
if (!(channel_name = g_strdup_printf("D%d", i)))
|
if (!(channel_name = g_strdup_printf("D%d", i)))
|
||||||
|
|
Loading…
Reference in New Issue