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:
joss17 2010-01-20 21:15:14 +00:00
parent b8450774f5
commit 5fd9dba515

View File

@ -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 ******/