mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-04 12:49:28 -04: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
1 changed files with 3 additions and 3 deletions
|
@ -352,12 +352,12 @@ bool ChunkMap::getDataChunk(const std::string& peer_id,uint32_t size_hint,ftChun
|
||||||
|
|
||||||
chunk.peer_id = peer_id ;
|
chunk.peer_id = peer_id ;
|
||||||
|
|
||||||
if(it->second.empty())
|
|
||||||
_active_chunks_feed.erase(it) ;
|
|
||||||
|
|
||||||
#ifdef DEBUG_FTCHUNK
|
#ifdef DEBUG_FTCHUNK
|
||||||
std::cout << "*** ChunkMap::getDataChunk: returning slice " << chunk << " for peer " << it->first << std::endl ;
|
std::cout << "*** ChunkMap::getDataChunk: returning slice " << chunk << " for peer " << it->first << std::endl ;
|
||||||
#endif
|
#endif
|
||||||
|
if(it->second.empty())
|
||||||
|
_active_chunks_feed.erase(it) ;
|
||||||
|
|
||||||
return true ;
|
return true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue