X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Flascar-el-usb%2Fprotocol.c;h=ab5b6734426539b8eec698f3509b08c68aae5754;hb=0af636bed97c174bea46e61e961eaa1b0b162e0f;hp=49c5cd0a3687e3416c8585edd72c1634cca7e204;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/hardware/lascar-el-usb/protocol.c b/src/hardware/lascar-el-usb/protocol.c index 49c5cd0a..ab5b6734 100644 --- a/src/hardware/lascar-el-usb/protocol.c +++ b/src/hardware/lascar-el-usb/protocol.c @@ -323,9 +323,11 @@ static struct sr_dev_inst *lascar_identify(unsigned char *config) return NULL; } - if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, LASCAR_VENDOR, - profile->modelname, firmware))) - return NULL; + sdi = sr_dev_inst_new(); + sdi->status = SR_ST_INACTIVE; + sdi->vendor = g_strdup(LASCAR_VENDOR); + sdi->model = g_strdup(profile->modelname); + sdi->version = g_strdup(firmware); sdi->driver = di; if (profile->logformat == LOG_TEMP_RH) {