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:
csoler 2009-02-12 12:47:57 +00:00
parent 543e27a1da
commit acaa10d54f

View File

@ -181,7 +181,8 @@ bool ftController::completeFile(std::string hash)
uint32_t callbackCode = 0; uint32_t callbackCode = 0;
{ RsStackMutex stack(ctrlMutex); /******* LOCKED ********/ {
RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
std::cerr << "ftController:completeFile(" << hash << ")"; std::cerr << "ftController:completeFile(" << hash << ")";
std::cerr << std::endl; 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. * or have a callback which says: local file.
*/ */
{ RsStackMutex stack(ctrlMutex); /******* LOCKED ********/ {
RsStackMutex stack(ctrlMutex); /******* LOCKED ********/
if (!mFtActive) if (!mFtActive)
{ {
/* store in pending queue */ /* store in pending queue */
@ -902,9 +904,9 @@ bool ftController::FileDetails(std::string hash, FileInfo &info)
it->second.mTransfer->getFileSources(peerIds); it->second.mTransfer->getFileSources(peerIds);
} }
double totalRate; double totalRate = 0;
uint32_t tfRate; uint32_t tfRate = 0;
uint32_t state; uint32_t state = 0;
bool isDownloading = false; bool isDownloading = false;
bool isSuspended = false; bool isSuspended = false;