X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fopenbench-logic-sniffer%2Fprotocol.c;h=c2b66615e5156781163d9ca02de723d11a018598;hb=0af636bed97c174bea46e61e961eaa1b0b162e0f;hp=0a816d01625ad238d7fb548007bd67903da09c76;hpb=c7e455625807d31fcaf95f36a23f1afeba033e1f;p=libsigrok.git diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index 0a816d01..c2b66615 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -152,7 +152,8 @@ SR_PRIV struct sr_dev_inst *get_metadata(struct sr_serial_dev_inst *serial) GString *tmp_str, *devname, *version; guchar tmp_c; - sdi = sr_dev_inst_new(SR_ST_INACTIVE, NULL, NULL, NULL); + sdi = sr_dev_inst_new(); + sdi->status = SR_ST_INACTIVE; sdi->driver = di; devc = ols_dev_new(); sdi->priv = devc;