]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/saleae-logic16/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / saleae-logic16 / api.c
index f151fbd9243df42443c815052ab221a934b47841..c3aaacc52c0a83250848697b30298fa3cde1eabf 100644 (file)
@@ -198,7 +198,7 @@ static GSList *scan(GSList *options)
                if (des.idVendor != LOGIC16_VID || des.idProduct != LOGIC16_PID)
                        continue;
 
-               sdi = sr_dev_inst_new();
+               sdi = g_malloc0(sizeof(struct sr_dev_inst));
                sdi->status = SR_ST_INITIALIZING;
                sdi->vendor = g_strdup("Saleae");
                sdi->model = g_strdup("Logic16");