]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/agilent-dmm/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / agilent-dmm / api.c
index edae4bd4abc01d6535490d1a5619f495683b76ca..e8767a61ae7c2c2451ec1ae9c7aff999121492c5 100644 (file)
@@ -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]);