mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[subset] add comment to copy_bytes().
This commit is contained in:
parent
675ebbeb3a
commit
10ad185932
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue