Index: fpdfsdk/src/fsdk_baseform.cpp |
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp |
index 976d276e8d305b00b7ced4516648a65c0963aa3f..afbafb81c39a64cd48c9f7e71a0795968e81a44d 100644 |
--- a/fpdfsdk/src/fsdk_baseform.cpp |
+++ b/fpdfsdk/src/fsdk_baseform.cpp |
@@ -3120,13 +3120,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; |
} |