Commit 36a1919f authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Content Directory: do interpret requestedCount==0 as 'no limit'

parent 46aaa2af
......@@ -369,7 +369,7 @@ int ContentCacheEntry::toResult(const string& classfilter, int stidx, int cnt,
if (stidx > int(i)) {
continue;
}
if (int(entries.size()) >= cnt) {
if (cnt && int(entries.size()) >= cnt) {
break;
}
LOGDEB1("ContentCacheEntry::toResult: pushing class " <<
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment