]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/victor-dmm/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / victor-dmm / api.c
index 9fb508371939abc0a2609c05ff177c14e3355d14..65e73d8ac903a54a6b5a1bbadd69a31cb976b796 100644 (file)
@@ -84,7 +84,7 @@ static GSList *scan(GSList *options)
 
                usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
 
-               sdi = sr_dev_inst_new();
+               sdi = g_malloc0(sizeof(struct sr_dev_inst));
                sdi->status = SR_ST_INACTIVE;
                sdi->vendor = g_strdup(VICTOR_VENDOR);
                sdi->driver = di;