diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 15:33:53 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-04-08 14:45:05 +0200 |
commit | e33de5db39067f372097f34272add352a96c5621 (patch) | |
tree | e96c6cfc0cd680686566df314d033e59e62c0a1d | |
parent | 4446b9a9958ce028d585f7f0e9c11fac6b92420c (diff) |
coverity#705966 Dereference before null check
Change-Id: I74507ce67f928bdeb626d4070dbd2a45cc126521
(cherry picked from commit 511d8bbbec6bc95d92a3ac6bbac4c68622738706)
Reviewed-on: https://gerrit.libreoffice.org/8697
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-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 f1bec516987c..91717b7f2aa7 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -2438,7 +2438,7 @@ bool GetSfntTable( TrueTypeFont* ttf, int nSubtableIndex, return false; *pRawLength = ttf->tlens[ nSubtableIndex ]; *ppRawBytes = ttf->tables[ nSubtableIndex ]; - bool bOk = (*pRawLength > 0) && (ppRawBytes != NULL); + bool bOk = (*pRawLength > 0) && (*ppRawBytes != NULL); return bOk; } |