]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/beaglelogic/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / beaglelogic / api.c
index 910bb843b5919addb45d8bed5704a1f60b8d90d9..9a39e1de9487ec735f82231f5e25bf7866725eb0 100644 (file)
@@ -97,7 +97,7 @@ static GSList *scan(GSList *options)
        if (!g_file_test(BEAGLELOGIC_DEV_NODE, G_FILE_TEST_EXISTS))
                return NULL;
 
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INACTIVE;
        sdi->model = g_strdup("BeagleLogic");
        sdi->version = g_strdup("1.0");