diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:15:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:22 +0000 |
commit | 31045492f0068210851d51751ca27d43c345e55a (patch) | |
tree | b4132b5c7dc286592133ddbffa07b6bcc07fb062 /sal | |
parent | b1995a2f2d193d12bf189dfcfa2e0fcaa415bbf6 (diff) |
coverity#982463 Dereference after null check
Change-Id: I46cbcb4091428557c8f9516e15c9be0eb4db27b2
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index b1aa84bbb908..dabfabe7c954 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -1425,6 +1425,7 @@ namespace osl_FileBase { nError1 = FileBase::createTempFile( pUStr_DirURL, 0, pUStr_FileURL ); bOK = ( pUStr_FileURL != 0); + CPPUNIT_ASSERT(bOK); ::osl::File testFile( *pUStr_FileURL ); nError2 = testFile.open( osl_File_OpenFlag_Create ); deleteTestFile( *pUStr_FileURL ); |