From 50ef2db4a80d096978fd27c5d77306c631f8a181 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 2 May 2013 21:10:46 +0200 Subject: [PATCH] BPlusTree: Fix GCC4 false positive of possible unintialized use. --- src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp b/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp index b5ef6c6a0d..33efc3fbc0 100644 --- a/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp @@ -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++;