Skip to content

Commit

Permalink
adding changes for 254284
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit committed May 18, 2011
1 parent 86a5699 commit 4864a8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
@@ -1,3 +1,9 @@
libmeegosyncml (0.4.15) stable; urgency=low

* Fixes: NB#254284 - <coverity> defects from libmeegosyncml/0.4.14_0m6 .

-- Amit <amit.5.aggarwal@nokia.com> Wed, 18 May 2011 18:11:00 +0300

libmeegosyncml (0.4.14) stable; urgency=low

* Unit test cases updated.
Expand Down
6 changes: 4 additions & 2 deletions src/AuthenticationPackage.cpp
Expand Up @@ -84,8 +84,10 @@ bool AuthenticationPackage::write( SyncMLMessage& aMessage, int& aSizeThreshold,
Q_ASSERT( 0 );
}

aMessage.addToHeader( cred );
aSizeThreshold -= cred->calculateSize(aWBXML, aVersion);
if(cred) {
aMessage.addToHeader( cred );
aSizeThreshold -= cred->calculateSize(aWBXML, aVersion);
}

return true;
}
2 changes: 1 addition & 1 deletion src/DevInfPackage.cpp
Expand Up @@ -47,7 +47,7 @@ DevInfPackage::DevInfPackage( const QList<StoragePlugin*>& aDataStores,
const DeviceInfo& aDeviceInfo,
const ProtocolVersion& aVersion,
const Role& aRole )
: iDataStores( aDataStores ), iDeviceInfo( aDeviceInfo ),
: iMsgRef(0), iCmdRef(0), iDataStores( aDataStores ), iDeviceInfo( aDeviceInfo ),
iVersion( aVersion ), iRole( aRole ), iType( PUTGET )
{
FUNCTION_CALL_TRACE;
Expand Down

0 comments on commit 4864a8d

Please sign in to comment.