summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-11 13:27:43 +0200
committerCaolán McNamara <caolanm@redhat.com>2011-09-13 13:30:49 +0100
commit2240a98e68db581993621451701e3e47495895e4 (patch)
tree5cc1f183330db937c5991f7a8db72f78787ea830 /svl
parent549e54fb2f8113502743c443d6deadfe648dede1 (diff)
wrong initialization of DdeInstData with memset despite std::vector
Thanks cppchecker for detecting this
Diffstat (limited to 'svl')
-rw-r--r--svl/source/svdde/ddecli.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx
index 3f6ffafd0028..fa0192830d80 100644
--- a/svl/source/svdde/ddecli.cxx
+++ b/svl/source/svdde/ddecli.cxx
@@ -43,7 +43,15 @@
DdeInstData* ImpInitInstData()
{
DdeInstData* pData = new DdeInstData;
- memset( pData,0,sizeof(DdeInstData) );
+ pData->nRefCount = 0;
+ pData->aConnections.clear();
+ pData->hCurConvSvr = 0;
+ pData->hDdeInstSvr = 0;
+ pData->nInstanceSvr = 0;
+ pData->pServicesSvr = NULL;
+ pData->hDdeInstCli = 0;
+ pData-> nInstanceCli = 0;
+
DdeInstData** ppInst = (DdeInstData**)GetAppData( SHL_SVDDE );
*ppInst = pData;
return pData;