X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fwav.c;h=647b537cd4883e4ec5e8c748dd708b87b55e15b2;hb=5cfcab6603414489181ded122b51579f7b546024;hp=1c0d4fd18082da643d6b2b0d083e277f1d7ff597;hpb=18078d0532d3daa013ad712356d93c28e1ae64fd;p=libsigrok.git diff --git a/src/input/wav.c b/src/input/wav.c index 1c0d4fd1..647b537c 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -150,7 +150,7 @@ static int init(struct sr_input *in, GHashTable *options) { (void)options; - in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL); + in->sdi = g_malloc0(sizeof(struct sr_dev_inst)); in->priv = g_malloc0(sizeof(struct context)); return SR_OK;