diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 7106a2e82..3067b900a 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -434,7 +434,7 @@ struct hb_serialize_context_t { unsigned int size = obj.get_size (); assert (this->start < (char *) &obj && (char *) &obj <= this->head && (char *) &obj + size >= this->head); - if (unlikely (!this->allocate_size (((char *) &obj) + size - this->head))) return false; + if (unlikely (!this->allocate_size (((char *) &obj) + size - this->head))) return NULL; return reinterpret_cast (&obj); }