mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-04 13:06:07 -04:00
Merge pull request #2190 from PhenomRetroShare/Fix_ValgrindErrorWithPrivateTrustPacketFWrite
Fix ValGrind error in PGPHandler::locked_writePrivateTrustDatabase
This commit is contained in:
commit
3d022504dc
@ -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…
x
Reference in New Issue
Block a user