[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 7eb9a9dbb: * src/pshinter/pshglob.c (psh_globals_new)
From: |
Werner Lemberg |
Subject: |
[freetype2] master 7eb9a9dbb: * src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing. |
Date: |
Fri, 14 Jan 2022 14:43:50 -0500 (EST) |
branch: master
commit 7eb9a9dbbee9c8513402c388772152b053f25289
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing.
This large allocation is followed by careful initialization. Whatever
is missed should be initialized manually.
---
src/pshinter/pshglob.c | 4 ++--
1 file 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 7eb9a9dbb: * src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing.,
Werner Lemberg <=