From 51c9f8c41bdffbffe7d784f24429dca6f6fb6cd4 Mon Sep 17 00:00:00 2001 From: franzap <_@franzap.com> Date: Wed, 1 Jan 2025 19:16:03 -0300 Subject: [PATCH] bug: use indices[i] as index is not defined Closes: https://github.com/damus-io/nostrdb/pull/66 --- src/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostrdb.c b/src/nostrdb.c index d41f23b..cbaf81d 100644 --- a/src/nostrdb.c +++ b/src/nostrdb.c @@ -1512,7 +1512,7 @@ static int ndb_rebuild_note_indices(struct ndb_txn *txn, enum ndb_dbs *indices, // ensure they are all index dbs for (i = 0; i < num_indices; i++) { if (!ndb_db_is_index(indices[i])) { - fprintf(stderr, "ndb_rebuild_note_index: %s is not an index db\n", ndb_db_name(index)); + fprintf(stderr, "ndb_rebuild_note_index: %s is not an index db\n", ndb_db_name(indices[i])); return -1; } }