Changeset 82b207f in serd


Ignore:
Timestamp:
Sep 24, 2017, 10:04:26 AM (8 weeks ago)
Author:
David Robillard <d@…>
Branches:
master, serd1
Children:
a5824db
Parents:
f341716
git-author:
David Robillard <d@…> (09/24/17 08:18:08)
git-committer:
David Robillard <d@…> (09/24/17 10:04:26)
Message:

Report error on unexpected object end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/reader.c

    rf341716 r82b207f  
    12261226    }
    12271227    switch (c) {
    1228     case '\0':
    1229         return r_err(reader, SERD_ERR_BAD_SYNTAX, "end of file in object\n");
    1230     case ')':
    1231         return false;
     1228    case '\0': case ')':
     1229        return r_err(reader, SERD_ERR_BAD_SYNTAX, "expected object\n");
    12321230    case '[':
    12331231        simple = false;
Note: See TracChangeset for help on using the changeset viewer.