suppressed uninitialized memory read in file transfer, also made the TransferDialog more secure

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2643 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-03-26 22:41:13 +00:00
parent 7c2dd7a7ae
commit d246ff2d7b
3 changed files with 40 additions and 39 deletions

View file

@ -8,7 +8,7 @@
static const time_t UPLOAD_CHUNK_MAPS_TIME = 30 ; // time to ask for a new chunkmap from uploaders in seconds.
ftFileProvider::ftFileProvider(std::string path, uint64_t size, std::string
hash) : mSize(size), hash(hash), file_name(path), fd(NULL),transfer_rate(0),total_size(0)
hash) : mSize(size), hash(hash), file_name(path), fd(NULL),transfer_rate(0),total_size(0),req_loc(0)
{
RsStackMutex stack(ftcMutex); /********** STACK LOCKED MTX ******/
clients_chunk_maps.clear();