coverity scan fixes/cleanups

This commit is contained in:
Isaac Connor
2018-04-12 11:29:35 -04:00
parent c766c1ddd1
commit 8518278476
17 changed files with 124 additions and 165 deletions

View File

@@ -101,7 +101,7 @@ unsigned int zm_packetqueue::clearQueue( unsigned int frames_to_keep, int stream
}
if ( it != pktQueue.rend() ) {
// We want to keep this packet, so advance to the next
it ++;
++it;
}
unsigned int delete_count = 0;
while ( it != pktQueue.rend() ) {