diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-18 20:30:21 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-18 20:30:21 +0000 |
commit | f3ec06759c21604436567693984ea31c5b1d5e3f (patch) | |
tree | 78d2b0bbaa105cb1faf96e49e0a3e94fa0df4444 /protocols/Tox/src/tox_transfer.h | |
parent | 83341d2f5f8b20549d1be6da322cb0cc2f72b5a1 (diff) |
Tox:
- fixed bugs from coverity
- fixed empty profile loading
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@13687 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_transfer.h')
-rw-r--r-- | protocols/Tox/src/tox_transfer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_transfer.h b/protocols/Tox/src/tox_transfer.h index 110fe4ab65..f683b9e046 100644 --- a/protocols/Tox/src/tox_transfer.h +++ b/protocols/Tox/src/tox_transfer.h @@ -20,6 +20,7 @@ struct FileTransferParam pfts.cbSize = sizeof(PROTOFILETRANSFERSTATUS);
pfts.flags = PFTS_TCHAR;
+ pfts.hContact = NULL;
pfts.totalFiles = 1;
pfts.ptszFiles = (TCHAR**)mir_alloc(sizeof(TCHAR*)*(pfts.totalFiles + 1));
pfts.ptszFiles[0] = pfts.tszCurrentFile = mir_tstrdup(fileName);
@@ -27,6 +28,7 @@ struct FileTransferParam pfts.totalBytes = pfts.currentFileSize = fileSize;
pfts.totalProgress = pfts.currentFileProgress = 0;
pfts.currentFileNumber = 0;
+ pfts.currentFileTime = time(NULL);
pfts.tszWorkingDir = NULL;
transferType = TOX_FILE_KIND_DATA;
|