]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/ikalogic-scanaplus/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / ikalogic-scanaplus / api.c
index 5075364624946c4d48563f5c6e6f2b16f540614d..d8165c7d855a33718d3d8ce676151f6c245eb9cc 100644 (file)
@@ -123,7 +123,7 @@ static GSList *scan(GSList *options)
        }
 
        /* Register the device with libsigrok. */
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INITIALIZING;
        sdi->vendor = g_strdup(USB_VENDOR_NAME);
        sdi->model = g_strdup(USB_MODEL_NAME);