diff --git a/src/hnswutils.c b/src/hnswutils.c index bdec9bd..1246872 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -813,7 +813,7 @@ HnswSearchLayer(char *base, Datum q, List *ep, int ef, int lc, Relation index, F pairingheap *C = pairingheap_allocate(CompareNearestCandidates, NULL); pairingheap *W = pairingheap_allocate(CompareFurthestCandidates, NULL); int wlen = 0; - visited_hash v2; + visited_hash vh; ListCell *lc2; HnswNeighborArray *localNeighborhood = NULL; Size neighborhoodSize = 0; @@ -823,7 +823,7 @@ HnswSearchLayer(char *base, Datum q, List *ep, int ef, int lc, Relation index, F if (v == NULL) { - v = &v2; + v = &vh; initVisited = true; }