]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/scpi-pps/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / scpi-pps / api.c
index 2a7c80cc67b91f201d366d574182dac73f981c48..c8070a063335538109aaa278ae96f4a112e9e7ae 100644 (file)
@@ -89,7 +89,7 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
                return NULL;
        }
 
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_ACTIVE;
        sdi->vendor = g_strdup(vendor);
        sdi->model = g_strdup(hw_info->model);