diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-26 21:47:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-27 12:43:50 +0100 |
commit | f074daffc2dcaf8ccca4bd0a7fd61b8b0d53ad03 (patch) | |
tree | cc361dc936c521d8b5b2b8ee0e1aea516416cd76 /vcl | |
parent | f1c6a16bf450d1f28c918dd8362969b9e5a841e4 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |