nostrdb: bug: use indices[i] as index is not defined

Closes: https://github.com/damus-io/nostrdb/pull/66
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
franzap
2025-01-01 19:16:03 -03:00
committed by Daniel D’Aquino
parent e6cb6c938b
commit 98e9ba25da

View File

@@ -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;
}
}