From ec878a04880882a5e5fba2146095fe9e8c371e2d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 23 Mar 2021 20:51:47 -0700 Subject: [PATCH] RTreeInsert2: move definition of i closer to its use --- lib/label/index.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/label/index.c b/lib/label/index.c index 4559468a2..ada4df4f5 100644 --- a/lib/label/index.c +++ b/lib/label/index.c @@ -275,7 +275,6 @@ static int RTreeInsert2(RTree_t * rtp, Rect_t * r, void *data, Node_t * n, Node_t ** new, int level) { - int i=0; Branch_t b; Node_t *n2=0; @@ -291,7 +290,7 @@ RTreeInsert2(RTree_t * rtp, Rect_t * r, void *data, /* Still above level for insertion, go down tree recursively */ if (n->level > level) { - i = PickBranch(r, n); + int i = PickBranch(r, n); if (!RTreeInsert2(rtp, r, data, n->branch[i].child, &n2, level)) { /* recurse: child was not split */ n->branch[i].rect = CombineRect(r, &(n->branch[i].rect)); return 0; -- 2.40.0