suppressed unninitialisez memory reads

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2407 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-02-23 21:55:44 +00:00
parent 5acc8411e5
commit ede337b7d4
2 changed files with 68 additions and 44 deletions

View File

@ -40,7 +40,13 @@
class ForumInfo class ForumInfo
{ {
public: public:
ForumInfo() {} ForumInfo()
{
forumFlags = 0 ;
subscribeFlags = 0 ;
pop = 0 ;
lastPost = 0 ;
}
std::string forumId; std::string forumId;
std::wstring forumName; std::wstring forumName;
std::wstring forumDesc; std::wstring forumDesc;
@ -56,7 +62,11 @@ class ForumInfo
class ForumMsgInfo class ForumMsgInfo
{ {
public: public:
ForumMsgInfo() {} ForumMsgInfo()
{
msgflags = 0 ;
ts = childTS = 0 ;
}
std::string forumId; std::string forumId;
std::string threadId; std::string threadId;
std::string parentId; std::string parentId;
@ -76,7 +86,12 @@ class ForumMsgInfo
class ThreadInfoSummary class ThreadInfoSummary
{ {
public: public:
ThreadInfoSummary() {} ThreadInfoSummary()
{
msgflags = 0 ;
count = 0 ;
ts = childTS = 0 ;
}
std::string forumId; std::string forumId;
std::string threadId; std::string threadId;
std::string parentId; std::string parentId;

View File

@ -131,6 +131,15 @@ std::ostream &operator<<(std::ostream &out, const FileInfo &info);
class RsConfig class RsConfig
{ {
public: public:
RsConfig()
{
localPort = extPort = 0 ;
firewalled = forwardPort = false ;
maxDownloadDataRate = maxUploadDataRate = maxIndivDataRate = 0 ;
promptAtBoot = 0 ;
DHTActive = uPnPActive = netLocalOk = netDhtOk = netStunOk = netExtraAddressOk = false ;
uPnPState = DHTPeers = 0 ;
}
std::string ownId; std::string ownId;
std::string ownName; std::string ownName;