From: Martin Ling Date: Wed, 18 Mar 2015 16:35:08 +0000 (+0000) Subject: rigol-ds: Fix wrong channel group malloc size. X-Git-Tag: libsigrok-0.4.0~597 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=16aca7661b7ab34a399c323bb9214721e2b1be0c;p=libsigrok.git rigol-ds: Fix wrong channel group malloc size. --- diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 5da9a5ea..e2e78aa3 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -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)))