Kaydet (Commit) 511d8bbb authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705966 Dereference before null check

Change-Id: I74507ce67f928bdeb626d4070dbd2a45cc126521
üst d34bcb10
......@@ -2332,7 +2332,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment