]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/zeroplus-logic-cube/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / zeroplus-logic-cube / api.c
index 76ae1e331d1112808d75babe1d2e736485f0824e..b2e7b7f38ce47409bf2ac30bff537d59c6c4480c 100644 (file)
@@ -222,7 +222,7 @@ static GSList *scan(GSList *options)
                sr_info("Found ZEROPLUS %s.", prof->model_name);
 
                /* Register the device with libsigrok. */
-               sdi = sr_dev_inst_new();
+               sdi = g_malloc0(sizeof(struct sr_dev_inst));
                sdi->status = SR_ST_INACTIVE;
                sdi->vendor = g_strdup(VENDOR_NAME);
                sdi->model = g_strdup(prof->model_name);