]> sigrok.org Git - libsigrok.git/blobdiff - src/lcr/es51919.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / lcr / es51919.c
index 4cacbe9a134c84d54fb2f4fa46d23e1934a1a6d8..ecfcd0ed7a5a0f703f83a139e3f5420fcf9c2537 100644 (file)
@@ -843,7 +843,7 @@ SR_PRIV struct sr_dev_inst *es51919_serial_scan(GSList *options,
 
        sr_info("Found device on port %s.", serial->port);
 
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INACTIVE;
        sdi->vendor = g_strdup(vendor);
        sdi->model = g_strdup(model);