diff options
Diffstat (limited to 'protocols/IcqOscarJ/src/oscar_filetransfer.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/oscar_filetransfer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/oscar_filetransfer.cpp b/protocols/IcqOscarJ/src/oscar_filetransfer.cpp index 67cea9db88..c2ee0077cd 100644 --- a/protocols/IcqOscarJ/src/oscar_filetransfer.cpp +++ b/protocols/IcqOscarJ/src/oscar_filetransfer.cpp @@ -840,15 +840,13 @@ static char *oftGetFileContainer(oscar_filetransfer* oft, const char** files, in HANDLE CIcqProto::oftInitTransfer(HANDLE hContact, DWORD dwUin, char* szUid, const TCHAR** files, const TCHAR* pszDesc)
{
- oscar_filetransfer *ft;
int i, filesCount;
struct _stati64 statbuf;
- char ** filesUtf;
// Initialize filetransfer struct
debugLogA("Init file send");
- ft = CreateOscarTransfer();
+ oscar_filetransfer *ft = CreateOscarTransfer();
ft->hContact = hContact;
ft->pMessage.bMessageType = MTYPE_FILEREQ;
InitMessageCookie(&ft->pMessage);
@@ -858,7 +856,7 @@ HANDLE CIcqProto::oftInitTransfer(HANDLE hContact, DWORD dwUin, char* szUid, con ft->files_list = (char**)SAFE_MALLOC(sizeof(TCHAR *) * filesCount);
ft->qwTotalSize = 0;
- filesUtf = (char**)SAFE_MALLOC(sizeof(char *) * filesCount);
+ char **filesUtf = (char**)SAFE_MALLOC(sizeof(char *) * filesCount);
for(i = 0; i < filesCount; i++) filesUtf[i] = FileNameToUtf(files[i]);
// Prepare files arrays
|