corrected potentially harmful uninitialized memory reads

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-08-14 07:28:58 +00:00
parent 98eb6b835d
commit dfeaed705b
2 changed files with 3 additions and 1 deletions

View File

@ -1478,12 +1478,13 @@ std::string GPGAuthMgr::SaveCertificateToString(std::string id)
std::cerr << "Error export Data"; std::cerr << "Error export Data";
std::cerr << std::endl; std::cerr << std::endl;
} }
gpgme_data_write (gpgmeData, "", 1); // to be able to convert it into a string
fflush (NULL); fflush (NULL);
fputs ("Begin Result:\n", stdout); fputs ("Begin Result:\n", stdout);
showData (gpgmeData); showData (gpgmeData);
fputs ("End Result.\n", stdout); fputs ("End Result.\n", stdout);
size_t len = 0; size_t len = 0;
char *export_txt = gpgme_data_release_and_get_mem(gpgmeData, &len); char *export_txt = gpgme_data_release_and_get_mem(gpgmeData, &len);
tmp = std::string(export_txt); tmp = std::string(export_txt);

View File

@ -78,6 +78,7 @@ p3turtle::p3turtle(p3ConnectMgr *cm,ftServer *fs)
_last_clean_time = 0 ; _last_clean_time = 0 ;
_last_tunnel_management_time = 0 ; _last_tunnel_management_time = 0 ;
_last_tunnel_campaign_time = 0 ;
} }
int p3turtle::tick() int p3turtle::tick()