]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/fx2lafw/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / fx2lafw / api.c
index 38ca70ff0dd755067985d9fd782178870cee0a5a..64d3bfea574fc4a40129a2866acdd211f0b81565 100644 (file)
@@ -241,7 +241,7 @@ static GSList *scan(GSList *options)
                if (!prof)
                        continue;
 
-               sdi = sr_dev_inst_new();
+               sdi = g_malloc0(sizeof(struct sr_dev_inst));
                sdi->status = SR_ST_INITIALIZING;
                sdi->vendor = g_strdup(prof->vendor);
                sdi->model = g_strdup(prof->model);