Tracker: Fixed CachedEntryIterator::GetNextEntry() debug build.

* A "style fix" introduced in 54e2dd7272
  broke the debug version by reversing the assertion logic.
This commit is contained in:
Axel Dörfler
2016-07-19 23:57:26 +02:00
parent 0bcb836563
commit 36c80cff6e
+2 -2
View File
@@ -167,8 +167,8 @@ CachedEntryIterator::~CachedEntryIterator()
status_t
CachedEntryIterator::GetNextEntry(BEntry* result, bool traverse)
{
ASSERT(fDirentBuffer != NULL);
ASSERT(fEntryRefBuffer != NULL);
ASSERT(fDirentBuffer == NULL);
ASSERT(fEntryRefBuffer == NULL);
if (fEntryBuffer == NULL) {
fEntryBuffer = new BEntry [fCacheSize];