From 5fd9dba51562a283def51b03b949f34806a826f9 Mon Sep 17 00:00:00 2001 From: joss17 Date: Wed, 20 Jan 2010 21:15:14 +0000 Subject: [PATCH] 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 --- libretroshare/src/pqi/authgpg.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index 140534d0b..de172af9b 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -1150,10 +1150,9 @@ bool AuthGPG::loadCertificates() std::string AuthGPG::SaveCertificateToString(std::string id) { - if (!isGPGValid(id)) { + if (!isGPGId(id)) { std::cerr << "AuthGPG::SaveCertificateToString() unknown ID" << std::endl; - std::string emptystr; - return emptystr; + return ""; } RsStackMutex stack(pgpMtx); /******* LOCKED ******/