mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
Merge pull request #2190 from PhenomRetroShare/Fix_ValgrindErrorWithPrivateTrustPacketFWrite
Fix ValGrind error in PGPHandler::locked_writePrivateTrustDatabase
This commit is contained in:
commit
3d022504dc
1 changed files with 2 additions and 0 deletions
|
@ -1864,6 +1864,8 @@ bool PGPHandler::locked_writePrivateTrustDatabase()
|
|||
return false;
|
||||
}
|
||||
PrivateTrustPacket trustpacket ;
|
||||
/* Clear PrivateTrustPacket struct to suppress valgrind warnings due to the compiler extra padding*/
|
||||
memset(&trustpacket, 0, sizeof(PrivateTrustPacket));
|
||||
|
||||
for( std::map<RsPgpId,PGPCertificateInfo>::iterator it =
|
||||
_public_keyring_map.begin(); it!=_public_keyring_map.end(); ++it )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue