diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-11 13:27:43 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-13 13:30:49 +0100 |
commit | 2240a98e68db581993621451701e3e47495895e4 (patch) | |
tree | 5cc1f183330db937c5991f7a8db72f78787ea830 /svl | |
parent | add Oracle Java 1.7.0 recognition (diff) | |
download | core-2240a98e68db581993621451701e3e47495895e4.tar.gz core-2240a98e68db581993621451701e3e47495895e4.zip |
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.cxx | 10 |
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; |