Let hb_face_get_table() return NULL if table not found
This commit is contained in:
parent
1cdbfd944e
commit
280af1bddb
|
@ -364,7 +364,7 @@ hb_face_get_table (hb_face_t *face,
|
||||||
|
|
||||||
blob = face->get_table (tag, face->user_data);
|
blob = face->get_table (tag, face->user_data);
|
||||||
|
|
||||||
return likely (blob) ? blob : &_hb_blob_nil;
|
return blob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,7 @@ hb_face_get_reference_count (hb_face_t *face);
|
||||||
void
|
void
|
||||||
hb_face_destroy (hb_face_t *face);
|
hb_face_destroy (hb_face_t *face);
|
||||||
|
|
||||||
|
/* Returns NULL if not found */
|
||||||
hb_blob_t *
|
hb_blob_t *
|
||||||
hb_face_get_table (hb_face_t *face,
|
hb_face_get_table (hb_face_t *face,
|
||||||
hb_tag_t tag);
|
hb_tag_t tag);
|
||||||
|
|
|
@ -283,6 +283,9 @@ struct Sanitizer
|
||||||
|
|
||||||
/* TODO is_sane() stuff */
|
/* TODO is_sane() stuff */
|
||||||
|
|
||||||
|
if (!blob)
|
||||||
|
return hb_blob_create_empty ();
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
if (HB_DEBUG_SANITIZE)
|
if (HB_DEBUG_SANITIZE)
|
||||||
fprintf (stderr, "Sanitizer %p start %s\n", blob, HB_FUNC);
|
fprintf (stderr, "Sanitizer %p start %s\n", blob, HB_FUNC);
|
||||||
|
|
Loading…
Reference in New Issue