mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 02:50:07 -05:00
fixed uninitialized memory read in debug statement
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6203 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
22befbfdf4
commit
4e4e81fa8e
@ -352,12 +352,12 @@ bool ChunkMap::getDataChunk(const std::string& peer_id,uint32_t size_hint,ftChun
|
||||
|
||||
chunk.peer_id = peer_id ;
|
||||
|
||||
if(it->second.empty())
|
||||
_active_chunks_feed.erase(it) ;
|
||||
|
||||
#ifdef DEBUG_FTCHUNK
|
||||
std::cout << "*** ChunkMap::getDataChunk: returning slice " << chunk << " for peer " << it->first << std::endl ;
|
||||
#endif
|
||||
if(it->second.empty())
|
||||
_active_chunks_feed.erase(it) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user