mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 21:04:32 -04:00
limited number of warnings for missuse of AuthGPG::getGPGName()
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5610 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
170bbf4ce2
commit
fbc937c638
1 changed files with 6 additions and 1 deletions
|
@ -344,7 +344,12 @@ std::string AuthGPG::getGPGName(const std::string &id,bool *success)
|
||||||
{
|
{
|
||||||
if(id.length() != 16)
|
if(id.length() != 16)
|
||||||
{
|
{
|
||||||
std::cerr << "Wrong string passed to getGPGDetails: \"" << id << "\"" << std::endl;
|
static int already = 0 ;
|
||||||
|
if(already < 10)
|
||||||
|
{
|
||||||
|
std::cerr << "Wrong string passed to getGPGDetails: \"" << id << "\"" << std::endl;
|
||||||
|
already++ ;
|
||||||
|
}
|
||||||
return std::string() ;
|
return std::string() ;
|
||||||
}
|
}
|
||||||
RsStackMutex stack(gpgMtxData); /******* LOCKED ******/
|
RsStackMutex stack(gpgMtxData); /******* LOCKED ******/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue