gmio_core: fix bug in gmio_eat_word()

This commit is contained in:
Hugues Delorme 2015-05-28 16:20:27 +02:00
parent 3511859908
commit 62401d5655

View File

@ -54,14 +54,9 @@ int gmio_eat_word(
if (i < buffer_capacity) {
buffer->ptr[i] = 0; /* End string with terminating null byte */
buffer->len = i;
if (stream_curr_char != NULL
|| gmio_stream_at_end(it->stream) == GMIO_TRUE)
{
return 0;
}
return -3;
return 0;
}
return -4;
return -1;
}
gmio_bool_t gmio_checked_next_chars(