From: Bert Vermeulen Date: Sun, 29 Jul 2012 01:01:02 +0000 (+0200) Subject: sr: fix initialization for output from driverless devices X-Git-Tag: dsupstream~754 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=aee878fa2efb8483bf93fa3bb03508357fc713a8;p=libsigrok.git sr: fix initialization for output from driverless devices --- diff --git a/output/text/text.c b/output/text/text.c index 41f88356..6462cb9e 100644 --- a/output/text/text.c +++ b/output/text/text.c @@ -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) {