Reset _leftOvers too.
@@ -111,6 +111,7 @@ int UrlReader::nextUrl(char *buf, int buflen)
if (_leftOvers) {
if ( _args._usePostMode && _args._singleQueryFile && _reader.GetFilePos() >= _args._queryfileEndOffset ) {
// reached logical EOF
+ _leftOvers = NULL;
return -1;
}
int sz = std::min(_leftOversLen, buflen-1);
