projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb0f30f
)
[blob] Allow null parent in create_sub_blob()
author
Behdad Esfahbod
<behdad@behdad.org>
Sat, 3 Nov 2018 19:49:37 +0000
(15:49 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sat, 3 Nov 2018 19:49:37 +0000
(15:49 -0400)
Like font and unicode.
src/hb-blob.cc
patch
|
blob
|
history
diff --git
a/src/hb-blob.cc
b/src/hb-blob.cc
index
4b036e8
..
9271200
100644
(file)
--- a/
src/hb-blob.cc
+++ b/
src/hb-blob.cc
@@
-149,7
+149,7
@@
hb_blob_create_sub_blob (hb_blob_t *parent,
{
hb_blob_t *blob;
- if (!length || offset >= parent->length)
+ if (!length ||
!parent ||
offset >= parent->length)
return hb_blob_get_empty ();
hb_blob_make_immutable (parent);