]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/colead-slm/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / colead-slm / api.c
index fa94119680032c1c6430c600c058d0c2c3cee75a..e879a102189c19ad4f7c8df2091c34c27514d3ff 100644 (file)
@@ -82,7 +82,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("Colead");
        sdi->model = g_strdup("SL-5868P");