]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/tondaj-sl-814/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / tondaj-sl-814 / api.c
index d725ec355b5ea17452a91c91fb7df94ca3381908..69aa30e90eb6e2bbcc0f8d65d36d5894a20efffe 100644 (file)
@@ -84,7 +84,7 @@ static GSList *scan(GSList *options)
        if (!serialcomm)
                serialcomm = SERIALCOMM;
 
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INACTIVE;
        sdi->vendor = g_strdup("Tondaj");
        sdi->model = g_strdup("SL-814");