vcl/source/fontsubset/sft.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8287f4a89180bba04ec8f2751ae62100dbc0fc53
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Feb 26 21:47:40 2022 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Feb 28 11:31:13 2022 +0100

    ofz#45073 initialize names to NULL in case of 0 glyphs
    
    Change-Id: Ie410d2a6f3d2fcda19b1925675bd7515673b07a7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130564
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 4a0044777f13..4b54bda1767a 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -1589,7 +1589,7 @@ SFErrCodes CreateTTFromTTGlyphs(AbstractTrueTypeFont  
*ttf,
 
     /**                       name                         **/
 
-    NameRecord *names;
+    NameRecord *names = nullptr;
     int n = GetTTNameRecords(ttf, &names);
     name = TrueTypeTableNew_name(n, names);
     DisposeNameRecords(names, n);

Reply via email to