]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.c
radioshack-dmm: Cosmetics, coding-style, cleanups.
[libsigrok.git] / output / text / text.c
index 41f88356c10eea015e1614f5aecebb23cacc587c..60d2715418ceb7451c500a68c45f4a3125a00698 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <glib.h>
-#include "config.h"
+#include "config.h" /* Needed for PACKAGE_STRING and others. */
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
 #include "text.h"
@@ -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) {