From 0ceb51cbd7f959dc17a1977cba7a8427bf446fd2 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 3 Nov 2014 20:24:59 +0000 Subject: [PATCH] compiler warning. --- arangod/Aql/ExecutionBlock.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arangod/Aql/ExecutionBlock.cpp b/arangod/Aql/ExecutionBlock.cpp index 7c79a8ff9d..7b205b703c 100644 --- a/arangod/Aql/ExecutionBlock.cpp +++ b/arangod/Aql/ExecutionBlock.cpp @@ -3748,8 +3748,9 @@ size_t GatherBlock::skipSome (size_t atLeast, size_t atMost) { // the non-simple case . . . size_t available = 0; // nr of available rows - size_t index; // an index of a non-empty buffer - + size_t index = 0; // an index of a non-empty buffer + TRI_ASSERT(_dependencies.size() != 0); + // pull more blocks from dependencies . . . for (size_t i = 0; i < _dependencies.size(); i++) { if (_gatherBlockBuffer.at(i).empty()) {