X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fscpi-pps%2Fapi.c;h=c8070a063335538109aaa278ae96f4a112e9e7ae;hp=2a7c80cc67b91f201d366d574182dac73f981c48;hb=aac29cc192ccf82b64e77b5e6b11b411da32deed;hpb=a9b2283fd038a2a8c3e2dc1ede4fcc51d5e62c7c diff --git a/src/hardware/scpi-pps/api.c b/src/hardware/scpi-pps/api.c index 2a7c80cc..c8070a06 100644 --- a/src/hardware/scpi-pps/api.c +++ b/src/hardware/scpi-pps/api.c @@ -89,7 +89,7 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi) return NULL; } - sdi = sr_dev_inst_new(); + sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->status = SR_ST_ACTIVE; sdi->vendor = g_strdup(vendor); sdi->model = g_strdup(hw_info->model);