X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdevice.c;h=78835d4c9709bdf9c2b02169130875809d1c6013;hb=837b08660a2ffaef0d2e47ef9555bd3af3f4874f;hp=1c84a7df48d6823f03543f6c580ffe72f94dd5ad;hpb=5e23fcab889c62864b92aa3ad6902ce3e9f5be49;p=libsigrok.git diff --git a/src/device.c b/src/device.c index 1c84a7df..78835d4c 100644 --- a/src/device.c +++ b/src/device.c @@ -57,6 +57,7 @@ SR_PRIV struct sr_channel *sr_channel_new(struct sr_dev_inst *sdi, struct sr_channel *ch; ch = g_malloc0(sizeof(struct sr_channel)); + ch->sdi = sdi; ch->index = index; ch->type = type; ch->enabled = enabled;