X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fcsv.c;h=68ab43b806de03c0dfc7d5be5e9e1bee6e5978a1;hb=cd3c4df35acdde1920fcaac92c0fd85591167e7a;hp=49bd73c8739623eaa3cedb93622666aa1bb6f861;hpb=160691b9008b2e13f981f6b8876cbbeb247c773d;p=libsigrok.git diff --git a/src/input/csv.c b/src/input/csv.c index 49bd73c8..68ab43b8 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -393,7 +393,7 @@ static int init(struct sr_input *in, GHashTable *options) struct context *inc; const char *s; - in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL); + in->sdi = g_malloc0(sizeof(struct sr_dev_inst)); in->priv = inc = g_malloc0(sizeof(struct context)); inc->single_column = g_variant_get_int32(g_hash_table_lookup(options, "single-column"));