X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fvcd.c;h=91c22fcaea30df775d6726f25cdc45e29afa582c;hb=73f052d329574e6fa9fc8bebcc7682b120da5bab;hp=e4a4e7278062169f27a01149fc811c1e6d1542cc;hpb=e85e550d92e680f19c9be759dfc2b29ce72ae7c5;p=libsigrok.git diff --git a/src/input/vcd.c b/src/input/vcd.c index e4a4e727..91c22fca 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -418,9 +418,10 @@ static void parse_contents(const struct sr_input *in, char *data) * there was whitespace after the bit, the next token. */ if (tokens[i][1] == '\0') { - if (!tokens[++i]) - /* Missing identifier */ - continue; + if (!tokens[++i]) { + sr_dbg("Identifier missing!"); + break; + } } else { for (j = 1; tokens[i][j]; j++) tokens[i][j - 1] = tokens[i][j];