commit | 7ff7401c9237cda661869c1cb196d685706ac4e9 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Mon Apr 11 13:27:30 2011 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon Apr 11 13:27:30 2011 -0400 |
tree | fbb7d2bf0c3d17688fc84a7972379848ed0b208b | |
parent | 02f6e62d6cabc7808c188daef26a1fe7ac626b1f [diff] [blame] |
Make hb_tag_from_string(NULL) return HB_TAG_NONE
diff --git a/src/hb-common.c b/src/hb-common.c index 3dfdbe8..90cba4e 100644 --- a/src/hb-common.c +++ b/src/hb-common.c
@@ -35,6 +35,9 @@ char tag[4]; unsigned int i; + if (!s) + return HB_TAG_NONE; + for (i = 0; i < 4 && s[i]; i++) tag[i] = s[i]; for (; i < 4; i++)