]> sigrok.org Git - libsigrok.git/commitdiff
sr: fix initialization for output from driverless devices
authorBert Vermeulen <redacted>
Sun, 29 Jul 2012 01:01:02 +0000 (03:01 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 09:29:00 +0000 (11:29 +0200)
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) {