summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2022-01-14 14:40:11 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2022-01-14 14:40:11 -0500
commit7eb9a9dbbee9c8513402c388772152b053f25289 (patch)
tree1e4f1c1bf2e2ba81e94eb144e4cc5ed1a0fba820
parent81b81feb628a549c65ab7401c4d5dacb27a77827 (diff)
downloadfreetype2-7eb9a9dbbee9c8513402c388772152b053f25289.tar.gz
* src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing.
This large allocation is followed by careful initialization. Whatever is missed should be initialized manually.
-rw-r--r--src/pshinter/pshglob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index ae2e1fbad..3eaf9b354 100644
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -646,11 +646,11 @@
T1_Private* priv,
PSH_Globals *aglobals )
{
- PSH_Globals globals = NULL;
+ PSH_Globals globals;
FT_Error error;
- if ( !FT_NEW( globals ) )
+ if ( !FT_QNEW( globals ) )
{
FT_UInt count;
FT_Short* read;