[blob] Allow null parent in create_sub_blob()
Like font and unicode.
This commit is contained in:
parent
fb0f30f55a
commit
da408fce98
|
@ -149,7 +149,7 @@ hb_blob_create_sub_blob (hb_blob_t *parent,
|
||||||
{
|
{
|
||||||
hb_blob_t *blob;
|
hb_blob_t *blob;
|
||||||
|
|
||||||
if (!length || offset >= parent->length)
|
if (!length || !parent || offset >= parent->length)
|
||||||
return hb_blob_get_empty ();
|
return hb_blob_get_empty ();
|
||||||
|
|
||||||
hb_blob_make_immutable (parent);
|
hb_blob_make_immutable (parent);
|
||||||
|
|
Loading…
Reference in New Issue