1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

small improvement: when calling parse_list after last element was reached, now PSYC_PARSE_LIST_END is returned

This commit is contained in:
lurchi 2016-09-05 12:37:35 +02:00
parent c593d85742
commit 516231b0ba

View file

@ -706,6 +706,7 @@ psyc_parse_list (PsycParseListState *state, PsycString *type, PsycString *elem)
ret = PSYC_PARSE_LIST_ELEM;
break;
case PARSE_INSUFFICIENT:
state->cursor = state->buffer.length;
return PSYC_PARSE_LIST_ELEM_LAST;
default: // should not be reached
return PSYC_PARSE_LIST_ERROR;