]> sigrok.org Git - libsigrok.git/blobdiff - src/input/vcd.c
input/vcd: fix parse_header() return value check.
[libsigrok.git] / src / input / vcd.c
index e14215712b75c56477342a4706de8cecee5e0cf1..f1d0b06cfad9a21add050fdea81ae086e21a24a8 100644 (file)
@@ -503,7 +503,7 @@ static int receive(struct sr_input *in, GString *buf)
        if (!inc->got_header) {
                if (!have_header(in->buf))
                        return SR_OK;
-               if (!parse_header(in, in->buf) != SR_OK)
+               if (!parse_header(in, in->buf))
                        /* There was a header in there, but it was malformed. */
                        return SR_ERR;