]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/uni-t-ut32x/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / uni-t-ut32x / api.c
index a50d4a4fcdcb64a09c4d098b83e46fa6d98d0d67..95096c0b60d8e0c8c776ef8e79037c0afbd0f444 100644 (file)
@@ -79,7 +79,7 @@ static GSList *scan(GSList *options)
                /* We have a list of sr_usb_dev_inst matching the connection
                 * string. Wrap them in sr_dev_inst and we're done. */
                for (l = usb_devices; l; l = l->next) {
-                       sdi = sr_dev_inst_new();
+                       sdi = g_malloc0(sizeof(struct sr_dev_inst));
                        sdi->status = SR_ST_INACTIVE;
                        sdi->vendor = g_strdup(VENDOR);
                        sdi->model = g_strdup(MODEL);