Index: fpdfsdk/src/fsdk_baseform.cpp |
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp |
index 9ab61843b8b14d60682ceb90efffc4ede337ceac..0cbc4baa4423e0004a4c398d7a2e2a20a7b4d315 100644 |
--- a/fpdfsdk/src/fsdk_baseform.cpp |
+++ b/fpdfsdk/src/fsdk_baseform.cpp |
@@ -2352,13 +2352,10 @@ FX_BOOL CPDFSDK_InterForm::FDFToURLEncodedData(FX_LPBYTE& pBuf, FX_STRSIZE& nBuf |
if(i != pFields->GetCount()-1) |
fdfEncodedData = fdfEncodedData<<"&"; |
} |
- |
+ |
nBufSize = fdfEncodedData.GetLength(); |
pBuf = FX_Alloc(FX_BYTE, nBufSize); |
- if(!pBuf) |
- return FALSE; |
FXSYS_memcpy(pBuf, fdfEncodedData.GetBuffer(), nBufSize); |
- |
} |
return TRUE; |
} |