diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 09:45:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 11:36:26 +0000 |
commit | 2be3417bf6dba2a0897b21e15d22ef2f8aac99e3 (patch) | |
tree | 8c88e94a48fb070bf00f2891d9c1353786fa2945 /idl/source | |
parent | 525c539ac95d9cd88fc72c35bf365b2f5917030d (diff) |
coverity#1103651 Unchecked return value
Change-Id: Iee2bbba1e581364f72a73421ba8e799fa05a94e4
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/prj/database.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index 935a73095cee..3ac165ddcabe 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -624,9 +624,9 @@ sal_Bool SvIdlWorkingBase::ReadSvIdl( SvTokenStream & rInStm, sal_Bool bImported if( pTok->Is( SvHash_import() ) ) { rInStm.GetToken_Next(); - rInStm.Read( '(' ); // optional - pTok = rInStm.GetToken_Next(); - if( pTok->IsString() ) + bOk = rInStm.Read( '(' ); // optional + pTok = bOk ? rInStm.GetToken_Next() : NULL; + if( pTok && pTok->IsString() ) { OUString aFullName; if( osl::FileBase::E_None == osl::File::searchFileURL( |