diff options
author | Yorhel <git@yorhel.nl> | 2013-09-21 17:57:42 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2013-09-21 17:57:42 +0200 |
commit | 212009a15a37d73a29ea9666a89d9427a93b96c5 (patch) | |
tree | c4548f796943e1f76c6fc47c1d090ae6e9ce7814 | |
parent | af0f6a3996095e964a1b3f11e3401df728687e62 (diff) |
bench: Use yxml_eof()
-rw-r--r-- | bench/bench.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/bench.c b/bench/bench.c index ab65962..0cdeb99 100644 --- a/bench/bench.c +++ b/bench/bench.c @@ -49,8 +49,10 @@ static void xmlbench(const char *buf, size_t bufsize) { r = yxml_parse(x, *buf); buf++; } while(*buf && r >= 0); + if(r >= 0) + r = yxml_eof(x); /*printf("t%03lu l%03u b%03lu: %c %d", x->total, x->line, x->byte, *buf, r);*/ - assert(!*buf); + assert(!*buf && r == YXML_OK); } |