From aee878fa2efb8483bf93fa3bb03508357fc713a8 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 29 Jul 2012 03:01:02 +0200 Subject: [PATCH] sr: fix initialization for output from driverless devices --- output/text/text.c | 1 + 1 file changed, 1 insertion(+) 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) {