mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[buffer/serialize] Only serialize empty buffers of CONTENT_TYPE_INVALID
This commit is contained in:
parent
04658ec48f
commit
140552cec9
1 changed files with 2 additions and 0 deletions
|
@ -605,6 +605,8 @@ _hb_buffer_serialize_invalid (hb_buffer_t *buffer,
|
|||
hb_buffer_serialize_format_t format,
|
||||
hb_buffer_serialize_flags_t flags)
|
||||
{
|
||||
assert (!buffer->len);
|
||||
|
||||
unsigned int sconsumed;
|
||||
if (!buf_consumed)
|
||||
buf_consumed = &sconsumed;
|
||||
|
|
Loading…
Add table
Reference in a new issue