diff --git a/arangod/MMFiles/MMFilesPathBasedIndex.cpp b/arangod/MMFiles/MMFilesPathBasedIndex.cpp index 853e78aba7..3ee5359b8d 100644 --- a/arangod/MMFiles/MMFilesPathBasedIndex.cpp +++ b/arangod/MMFiles/MMFilesPathBasedIndex.cpp @@ -56,6 +56,8 @@ MMFilesPathBasedIndex::MMFilesPathBasedIndex(TRI_idx_iid_t iid, break; } } + + TRI_ASSERT(baseSize > 0); _allocator.reset(new FixedSizeAllocator(baseSize + sizeof(MMFilesIndexElementValue) * numPaths())); }