rigol-ds: Fix wrong channel group malloc size.

This commit is contained in:
Martin Ling 2015-03-18 16:35:08 +00:00
parent 6f1346fbd7
commit 16aca7661b
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
}
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++) {
if (!(channel_name = g_strdup_printf("D%d", i)))