projects
/
platform
/
upstream
/
harfbuzz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 2.4.0
[platform/upstream/harfbuzz.git]
/
src
/
hb-map.hh
diff --git
a/src/hb-map.hh
b/src/hb-map.hh
index
02d5406
..
f7156e5
100644
(file)
--- a/
src/hb-map.hh
+++ b/
src/hb-map.hh
@@
-170,7
+170,7
@@
struct hb_map_t
void clear ()
{
- memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
+
if (items)
memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
population = occupancy = 0;
}