From 108fb09d7b32c2c9bc1fadba03b54c23bb97422a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 8 Jan 2024 17:54:49 -0800 Subject: [PATCH] Improved code [skip ci] --- src/hnswutils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index 192fee5..d8170df 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -625,13 +625,12 @@ AddToVisited(visited_hash v, HnswCandidate * hc, Relation index, bool *found) List * HnswSearchLayer(Datum q, List *ep, int ef, int lc, Relation index, FmgrInfo *procinfo, Oid collation, int m, bool inserting, HnswElement skipElement) { - ListCell *lc2; - List *w = NIL; pairingheap *C = pairingheap_allocate(CompareNearestCandidates, NULL); pairingheap *W = pairingheap_allocate(CompareFurthestCandidates, NULL); int wlen = 0; visited_hash v; + ListCell *lc2; /* Create hash table */ if (index == NULL)