summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_struct.h
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-09-14 10:54:01 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-09-14 10:54:01 +0000
commit86bf4dd4f66a8f0c0ba24b34a9475a09547ab50e (patch)
tree79d7ea21ec0a4ae183bdf15d6c05c7aa0be7f48b /protocols/VKontakte/src/vk_struct.h
parent3b4d73751f2bdce3b26d070ea5b4a7eae3a3b750 (diff)
VKontakte: coverity fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15348 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_struct.h')
-rw-r--r--protocols/VKontakte/src/vk_struct.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_struct.h b/protocols/VKontakte/src/vk_struct.h
index ea93b42d02..4f8e0ac1d7 100644
--- a/protocols/VKontakte/src/vk_struct.h
+++ b/protocols/VKontakte/src/vk_struct.h
@@ -92,8 +92,8 @@ struct CVkFileUploadParam : public MZeroedObject {
~CVkFileUploadParam();
VKFileType GetType();
__forceinline bool IsAccess() { return ::_taccess(FileName, 0) == 0; }
- __forceinline char* atrName() { return atr; }
- __forceinline char* fileName() { return fname; }
+ __forceinline char* atrName() { GetType(); return atr; }
+ __forceinline char* fileName() { GetType(); return fname; }
};
struct CVkSendMsgParam : public MZeroedObject
@@ -101,12 +101,14 @@ struct CVkSendMsgParam : public MZeroedObject
CVkSendMsgParam(MCONTACT _hContact, int _iMsgID = 0, int _iCount = 0) :
hContact(_hContact),
iMsgID(_iMsgID),
- iCount(_iCount)
+ iCount(_iCount),
+ pFUP(NULL)
{}
CVkSendMsgParam(MCONTACT _hContact, CVkFileUploadParam *_pFUP) :
hContact(_hContact),
iMsgID(-1),
+ iCount(0),
pFUP(_pFUP)
{}