[buffer/serialize] Only serialize empty buffers of CONTENT_TYPE_INVALID
This commit is contained in:
parent
04658ec48f
commit
140552cec9
|
@ -605,6 +605,8 @@ _hb_buffer_serialize_invalid (hb_buffer_t *buffer,
|
||||||
hb_buffer_serialize_format_t format,
|
hb_buffer_serialize_format_t format,
|
||||||
hb_buffer_serialize_flags_t flags)
|
hb_buffer_serialize_flags_t flags)
|
||||||
{
|
{
|
||||||
|
assert (!buffer->len);
|
||||||
|
|
||||||
unsigned int sconsumed;
|
unsigned int sconsumed;
|
||||||
if (!buf_consumed)
|
if (!buf_consumed)
|
||||||
buf_consumed = &sconsumed;
|
buf_consumed = &sconsumed;
|
||||||
|
|
Loading…
Reference in New Issue