[subset] add comment to copy_bytes().

This commit is contained in:
Garret Rieger 2021-06-16 16:34:46 -07:00
parent 675ebbeb3a
commit 10ad185932
1 changed files with 2 additions and 0 deletions

View File

@ -547,6 +547,8 @@ struct hb_serialize_context_t
unsigned int len = (this->head - this->start)
+ (this->end - this->tail);
// If len is zero don't malloc as the memory won't get properly
// cleaned up later.
if (!len) return hb_bytes_t ();
char *p = (char *) malloc (len);