diff options
author | David Robillard <d@drobilla.net> | 2013-03-03 19:11:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-03 19:11:06 +0000 |
commit | c15914a3a956658a727a895745a5e5b638b04648 (patch) | |
tree | 38370915c8d37df0a3510d12c72055abf9e9c4f6 | |
parent | fe938ab3638b8b00fe11dddae466f65940e32f57 (diff) | |
download | serd-c15914a3a956658a727a895745a5e5b638b04648.tar.gz serd-c15914a3a956658a727a895745a5e5b638b04648.tar.bz2 serd-c15914a3a956658a727a895745a5e5b638b04648.zip |
Fix crazy logic and redundant call in read_PN_LOCAL().
git-svn-id: http://svn.drobilla.net/serd/trunk@432 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r-- | src/reader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader.c b/src/reader.c index b74153ac..5dd9578e 100644 --- a/src/reader.c +++ b/src/reader.c @@ -679,16 +679,16 @@ read_PN_LOCAL(SerdReader* reader, Ref dest) while ((c = peek_byte(reader))) { // Middle: (PN_CHARS | '.' | ';')* if (/*c == '.' || */c == ':') { push_byte(reader, dest, eat_byte_safe(reader, c)); - } else if (!read_PN_CHARS(reader, dest)){ + } else if (!read_PN_CHARS(reader, dest)) { if ((st = read_PLX(reader, dest)) > SERD_FAILURE) { return st; - } else if (st != SERD_SUCCESS && !read_PN_CHARS(reader, dest)) { - return SERD_FAILURE; + } else if (st != SERD_SUCCESS) { + break; } } } - return dest; + return SERD_SUCCESS; } static SerdStatus |