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;
.id = "vcd",
.name = "VCD",
.desc = "Value Change Dump",
+ .exts = (const char*[]){"vcd", NULL},
.metadata = { SR_INPUT_META_HEADER | SR_INPUT_META_REQUIRED },
.options = get_options,
.format_match = format_match,