diff --git a/src/zm_packetqueue.cpp b/src/zm_packetqueue.cpp index 292797f1c..8f36e0cd7 100644 --- a/src/zm_packetqueue.cpp +++ b/src/zm_packetqueue.cpp @@ -250,7 +250,7 @@ ZMPacket *zm_packetqueue::get_analysis_packet() { bool zm_packetqueue::increment_analysis_it( ) { // We do this instead of distance becuase distance will traverse the entire list in the worst case std::list::iterator next_it = analysis_it; - next_it ++; + ++ next_it; if ( next_it == pktQueue.end() ) { return false; }