Changeset 9dd64d0 in serd


Ignore:
Timestamp:
Sep 24, 2017, 1:19:31 PM (8 weeks ago)
Author:
David Robillard <d@…>
Branches:
master, serd1
Children:
5dddc73
Parents:
7fd30c1
Message:

Don't smash error status when lax parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/reader.c

    r7fd30c1 r9dd64d0  
    141141    }
    142142
    143     reader->status = serd_byte_source_advance(&reader->source);
     143    const SerdStatus st = serd_byte_source_advance(&reader->source);
     144    if (st) {
     145        reader->status = st;
     146    }
    144147    return byte;
    145148}
Note: See TracChangeset for help on using the changeset viewer.