harmless uninitialised memory read fixed

This commit is contained in:
Martin Sustrik 2009-12-01 19:09:58 +01:00
parent 9bd309bda6
commit cb84580bbc

View File

@ -60,11 +60,13 @@ namespace zmq
inline ~yqueue_t ()
{
while (true) {
if (begin_chunk == end_chunk) {
delete begin_chunk;
break;
}
chunk_t *o = begin_chunk;
begin_chunk = begin_chunk->next;
delete o;
if (o == end_chunk)
break;
}
}