mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 21:04:32 -04:00
fix null pointer to string in authgpg save certificate to string
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2098 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b8450774f5
commit
5fd9dba515
1 changed files with 2 additions and 3 deletions
|
@ -1150,10 +1150,9 @@ bool AuthGPG::loadCertificates()
|
||||||
std::string AuthGPG::SaveCertificateToString(std::string id)
|
std::string AuthGPG::SaveCertificateToString(std::string id)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!isGPGValid(id)) {
|
if (!isGPGId(id)) {
|
||||||
std::cerr << "AuthGPG::SaveCertificateToString() unknown ID" << std::endl;
|
std::cerr << "AuthGPG::SaveCertificateToString() unknown ID" << std::endl;
|
||||||
std::string emptystr;
|
return "";
|
||||||
return emptystr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RsStackMutex stack(pgpMtx); /******* LOCKED ******/
|
RsStackMutex stack(pgpMtx); /******* LOCKED ******/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue