]> sigrok.org Git - libsigrok.git/blobdiff - src/input/wav.c
Fix the channel indexes of the es51919 driver.
[libsigrok.git] / src / input / wav.c
index 8f8a37101200d49488596d7e914d7e8bbd490ad3..647b537cd4883e4ec5e8c748dd708b87b55e15b2 100644 (file)
@@ -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;