mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 12:24:22 -05:00
suppressed an initialized memory read. It happens below, but this limits its impact above.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1039 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
543e27a1da
commit
acaa10d54f
@ -181,7 +181,8 @@ bool ftController::completeFile(std::string hash)
|
||||
uint32_t callbackCode = 0;
|
||||
|
||||
|
||||
{ RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
|
||||
{
|
||||
RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
|
||||
|
||||
std::cerr << "ftController:completeFile(" << hash << ")";
|
||||
std::cerr << std::endl;
|
||||
@ -394,7 +395,8 @@ bool ftController::FileRequest(std::string fname, std::string hash,
|
||||
* or have a callback which says: local file.
|
||||
*/
|
||||
|
||||
{ RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
|
||||
{
|
||||
RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
|
||||
if (!mFtActive)
|
||||
{
|
||||
/* store in pending queue */
|
||||
@ -902,9 +904,9 @@ bool ftController::FileDetails(std::string hash, FileInfo &info)
|
||||
it->second.mTransfer->getFileSources(peerIds);
|
||||
}
|
||||
|
||||
double totalRate;
|
||||
uint32_t tfRate;
|
||||
uint32_t state;
|
||||
double totalRate = 0;
|
||||
uint32_t tfRate = 0;
|
||||
uint32_t state = 0;
|
||||
|
||||
bool isDownloading = false;
|
||||
bool isSuspended = false;
|
||||
|
Loading…
Reference in New Issue
Block a user