提交 d74dc3ef 编写于 作者: B Behdad Esfahbod

[serialize] Don't insert empty object into tree

上级 7fd82283
......@@ -160,6 +160,9 @@ struct hb_serialize_context_t
memmove (tail, obj.head, len);
head = obj.head;
if (!len)
return 0;
obj.head = tail;
obj.tail = tail + len;
......@@ -304,7 +307,7 @@ struct hb_serialize_context_t
hb_vector_t<object_t> packed;
/* Map view of packed objects. */
hb_hashmap_t<const object_t *, objidx_t> packed_map;
hb_hashmap_t<const object_t *, objidx_t, nullptr, 0> packed_map;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册