X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fwav.c;h=647b537cd4883e4ec5e8c748dd708b87b55e15b2;hb=bb983c666a074d8e16c5f6c16e20870bc6c5d727;hp=8f8a37101200d49488596d7e914d7e8bbd490ad3;hpb=0af636bed97c174bea46e61e961eaa1b0b162e0f;p=libsigrok.git diff --git a/src/input/wav.c b/src/input/wav.c index 8f8a3710..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(); + in->sdi = g_malloc0(sizeof(struct sr_dev_inst)); in->priv = g_malloc0(sizeof(struct context)); return SR_OK;