X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fagilent-dmm%2Fapi.c;h=e8767a61ae7c2c2451ec1ae9c7aff999121492c5;hp=edae4bd4abc01d6535490d1a5619f495683b76ca;hb=aac29cc192ccf82b64e77b5e6b11b411da32deed;hpb=a9b2283fd038a2a8c3e2dc1ede4fcc51d5e62c7c diff --git a/src/hardware/agilent-dmm/api.c b/src/hardware/agilent-dmm/api.c index edae4bd4..e8767a61 100644 --- a/src/hardware/agilent-dmm/api.c +++ b/src/hardware/agilent-dmm/api.c @@ -139,7 +139,7 @@ static GSList *scan(GSList *options) for (i = 0; supported_agdmm[i].model; i++) { if (strcmp(supported_agdmm[i].modelname, tokens[1])) continue; - sdi = sr_dev_inst_new(); + sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->status = SR_ST_INACTIVE; sdi->vendor = g_strdup("Agilent"); sdi->model = g_strdup(tokens[1]);