BPlusTree: Fix GCC4 false positive of possible unintialized use.

This commit is contained in:
Michael Lotz 2013-05-02 21:10:46 +02:00
parent 1a5e87cc64
commit 50ef2db4a8

View File

@ -3089,7 +3089,7 @@ duplicate_array::Insert(off_t value)
// binary search, if not, just iterate linearly to find
// the insertion point
int32 size = Count();
int32 i;
int32 i = 0;
if (size > 8 ) {
if (!_FindInternal(value, i) && ValueAt(i) <= value)
i++;