X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fvcd.c;h=eec53e1039a7539e6b2027c5ce28118ed404f19f;hb=879dd50fb6d5f810d3c5635c3264b2c08ad22a70;hp=6759d73ef32fa4d8742bbf17b13e39b792a1afde;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/input/vcd.c b/src/input/vcd.c index 6759d73e..eec53e10 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -141,10 +141,8 @@ static gboolean parse_section(FILE *file, gchar **name, gchar **contents) if (!read_until(file, NULL, 'N')) return FALSE; /* Section tag should start with $. */ - if (fgetc(file) != '$') { - sr_err("Expected $ at beginning of section."); + if (fgetc(file) != '$') return FALSE; - } /* Read the section tag */ sname = g_string_sized_new(32);