]> sigrok.org Git - libsigrok.git/blobdiff - src/input/vcd.c
Don't start session with 0-channel devices.
[libsigrok.git] / src / input / vcd.c
index cfcecf30b21614ff62e457b88344f974aa5dd318..62b9a090086f55d4c8dbb6fda98878605ed27c2d 100644 (file)
@@ -257,7 +257,7 @@ static int format_match(GHashTable *metadata)
        g_free(name);
        g_free(contents);
 
-       return status;
+       return status ? SR_OK : SR_ERR;
 }
 
 /* Send N samples of the given value. */
@@ -524,7 +524,7 @@ static struct sr_option options[] = {
        { "skip", "Skip", "Skip until timestamp", NULL, NULL },
        { "downsample", "Downsample", "Divide samplerate by factor", NULL, NULL },
        { "compress", "Compress", "Compress idle periods longer than this value", NULL, NULL },
-       { 0 }
+       ALL_ZERO
 };
 
 static struct sr_option *get_options(void)