X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fanalog.c;h=3b9a581202213414d5413932c4fee8a6a940255f;hb=d378f1009999f8b9a1037a9f417ea5518d9a6d37;hp=77cf8b1074755f0888417d221a3e7e5dc10ee35c;hpb=a24da9a81358644265465325d12579cd8aa34ba5;p=libsigrok.git diff --git a/src/output/analog.c b/src/output/analog.c index 77cf8b10..3b9a5812 100644 --- a/src/output/analog.c +++ b/src/output/analog.c @@ -47,7 +47,7 @@ static int init(struct sr_output *o, GHashTable *options) if (!o || !o->sdi) return SR_ERR_ARG; - o->priv = ctx = g_try_malloc0(sizeof(struct context)); + o->priv = ctx = g_malloc0(sizeof(struct context)); s = g_variant_get_string(g_hash_table_lookup(options, "digits"), NULL); if (!strcmp(s, "all")) ctx->digits = DIGITS_ALL; @@ -344,6 +344,7 @@ SR_PRIV struct sr_output_module output_analog = { .id = "analog", .name = "Analog", .desc = "Analog data and types", + .exts = NULL, .options = get_options, .init = init, .receive = receive,