mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed uninitialised memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7239 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
61080e9816
commit
40b175ef44
@ -124,19 +124,26 @@ void init_item(RsGxsMsgMetaData* metaMsg)
|
||||
|
||||
init_random(metaMsg->mGroupId) ;
|
||||
init_random(metaMsg->mMsgId) ;
|
||||
metaMsg->refcount = 1;
|
||||
init_random(metaMsg->mThreadId) ;
|
||||
init_random(metaMsg->mParentId) ;
|
||||
init_random(metaMsg->mAuthorId) ;
|
||||
init_random(metaMsg->mOrigMsgId) ;
|
||||
|
||||
randString(SHORT_STR, metaMsg->mMsgName);
|
||||
init_random(metaMsg->mAuthorId) ;
|
||||
|
||||
init_item(metaMsg->signSet);
|
||||
|
||||
randString(SHORT_STR, metaMsg->mServiceString);
|
||||
|
||||
randString(SHORT_STR, metaMsg->mMsgName);
|
||||
|
||||
metaMsg->mPublishTs = rand()%313;
|
||||
metaMsg->mMsgFlags = rand()%224;
|
||||
metaMsg->mMsgStatus = rand()%4242;
|
||||
metaMsg->mChildTs = rand()%221;
|
||||
metaMsg->recvTS = rand()%2327 ;
|
||||
|
||||
init_random(metaMsg->mHash) ;
|
||||
metaMsg->validated = true ;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user