Index: core/src/fpdfdoc/doc_basic.cpp |
diff --git a/core/src/fpdfdoc/doc_basic.cpp b/core/src/fpdfdoc/doc_basic.cpp |
index 9d31d156245e844b51f82a1cc99636a875081de3..3ba109b016999cce78a02247f8cc5faeec31b62b 100644 |
--- a/core/src/fpdfdoc/doc_basic.cpp |
+++ b/core/src/fpdfdoc/doc_basic.cpp |
@@ -148,13 +148,12 @@ static CPDF_Object* SearchNameNode(CPDF_Dictionary* pNode, int nIndex, int& nCur |
if (nIndex >= nCurIndex + nCount) { |
nCurIndex += nCount; |
return NULL; |
- } else { |
- if (ppFind != NULL) { |
- *ppFind = pNames; |
- } |
- csName = pNames->GetString((nIndex - nCurIndex) * 2); |
- return pNames->GetElementValue((nIndex - nCurIndex) * 2 + 1); |
} |
+ if (ppFind != NULL) { |
+ *ppFind = pNames; |
+ } |
+ csName = pNames->GetString((nIndex - nCurIndex) * 2); |
+ return pNames->GetElementValue((nIndex - nCurIndex) * 2 + 1); |
} |
CPDF_Array* pKids = pNode->GetArray(FX_BSTRC("Kids")); |
if (pKids == NULL) { |