summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-19 16:09:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-19 20:22:52 +0000
commit7a958026f3526468a0c949fcceb116b33e29b903 (patch)
tree89e0c18da87d52b7761c6b48810751c9a5e2373a /sal
parentf8ee482b92638d3acfa944d305f87a34e5fc6e95 (diff)
coverity#984119 Uninitialized pointer field
Change-Id: I6bbb181b892f22d05be76fc75506d94543eb7ee7
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/file/osl_File.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 63b9bcbe714a..525630368fc4 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -2460,6 +2460,11 @@ namespace osl_FileStatus
::osl::DirectoryItem rItem_file, rItem_link;
public:
+ isValid()
+ : pDir(NULL)
+ {
+ }
+
// initialization
void setUp()
{
@@ -2477,8 +2482,8 @@ namespace osl_FileStatus
void tearDown()
{
- ::osl::FileBase::RC nError1 = pDir->close();
- delete pDir;
+ ::osl::FileBase::RC nError1 = pDir->close();
+ delete pDir;
CPPUNIT_ASSERT_MESSAGE( errorToStr(nError1).getStr(), ::osl::FileBase::E_None == nError1 );
// remove the tempfile in $TEMP/tmpdir/tmpname.