RTreeNewIndex: push definition of x closer to its use
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 24 Mar 2021 03:47:36 +0000 (20:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 31 Mar 2021 00:05:59 +0000 (17:05 -0700)
lib/label/index.c

index d05cddc405296f4f316fa329baacc4330a9b5625..8365fa1ee9a6eb58b82ac4021774e0900304ae09 100644 (file)
@@ -83,8 +83,7 @@ RTree_t *RTreeOpen()
 /* Make a new index, empty.  Consists of a single node. */
 Node_t *RTreeNewIndex(RTree_t * rtp)
 {
-    Node_t *x;
-    x = RTreeNewNode(rtp);
+    Node_t *x = RTreeNewNode(rtp);
     x->level = 0;              /* leaf */
     rtp->LeafCount++;
     return x;