]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/api.c
Eliminate sr_dev_inst_new().
[libsigrok.git] / src / hardware / atten-pps3xxx / api.c
index b42036bfbd147182057226560385420419ba59cc..580bc51d4632edb4e947a9033530d4e3729a290c 100644 (file)
@@ -164,7 +164,7 @@ static GSList *scan(GSList *options, int modelid)
                return NULL;
        }
 
-       sdi = sr_dev_inst_new();
+       sdi = g_malloc0(sizeof(struct sr_dev_inst));
        sdi->status = SR_ST_INACTIVE;
        sdi->vendor = g_strdup("Atten");
        sdi->model = g_strdup(model->name);