X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fscpi-pps%2Fapi.c;h=412d94eef271f442624ec1a25ee90d5b84321de0;hb=d08667c53b52ff7015de883dfc45906323eb2aa5;hp=891236a81c655d7283159b167c502e79f34c5e16;hpb=b2c02b0747a413be1ebfb26a15ce692ad6beb49e;p=libsigrok.git diff --git a/src/hardware/scpi-pps/api.c b/src/hardware/scpi-pps/api.c index 891236a8..412d94ee 100644 --- a/src/hardware/scpi-pps/api.c +++ b/src/hardware/scpi-pps/api.c @@ -88,6 +88,11 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi) sdi->conn = scpi; sdi->driver = di; sdi->inst_type = SR_INST_SCPI; + sdi->serial_num = g_strdup(hw_info->serial_number); + + sr_scpi_hw_info_free(hw_info); + hw_info = NULL; + devc = g_malloc0(sizeof(struct dev_context)); devc->device = device; sdi->priv = devc;