Index: core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp |
diff --git a/core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp b/core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp |
index fba3a2b031b94824e0fa8256048452b081c6e34a..90091deaac0ccf2966bcc2a22de06fdc1cd2ff00 100644 |
--- a/core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp |
+++ b/core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp |
@@ -105,7 +105,7 @@ FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode) { |
} |
FX_WORD code = (FX_WORD)charcode; |
while (1) { |
- if (pMap->m_pWordMap == NULL) { |
+ if (!pMap->m_pWordMap) { |
return 0; |
} |
if (pMap->m_WordMapType == FXCMAP_CMap::Single) { |