]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.c
generic-dmm: cosmetics
[libsigrok.git] / output / text / text.c
index 41f88356c10eea015e1614f5aecebb23cacc587c..6462cb9edb34d739f0523e71fb9d50d08cc4f958 100644 (file)
@@ -96,6 +96,7 @@ SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode)
        ctx->mark_trigger = -1;
        ctx->mode = mode;
 
+       ret = SR_OK;
        if (o->param && o->param[0]) {
                ctx->samples_per_line = strtoul(o->param, NULL, 10);
                if (ctx->samples_per_line < 1) {