vcl/source/fontsubset/sft.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f074daffc2dcaf8ccca4bd0a7fd61b8b0d53ad03 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Feb 26 21:47:40 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Feb 27 12:43:50 2022 +0100 ofz#45073 initialize names to NULL in case of 0 glyphs Change-Id: Ie410d2a6f3d2fcda19b1925675bd7515673b07a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130614 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index c58ee46a277a..91efdfb63480 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);