Commit 7eb9a9dbbee9c8513402c388772152b053f25289

Alexei Podtelezhnikov 2022-01-14T14:40:11

* src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing. This large allocation is followed by careful initialization. Whatever is missed should be initialized manually.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index ae2e1fb..3eaf9b3 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;