mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
encoding.c: Fix text_decoder_get_buffer at EOF.
This commit is contained in:
@@ -699,5 +699,7 @@ text_decoder_getc(espeak_ng_TEXT_DECODER *decoder)
|
||||
const void *
|
||||
text_decoder_get_buffer(espeak_ng_TEXT_DECODER *decoder)
|
||||
{
|
||||
if (text_decoder_eof(decoder))
|
||||
return NULL;
|
||||
return decoder->current;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user