Skip to content

Commit 51c9f8c

Browse files
franzapsjb55
authored andcommitted
bug: use indices[i] as index is not defined
Closes: #66
1 parent b4c2ff3 commit 51c9f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nostrdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ static int ndb_rebuild_note_indices(struct ndb_txn *txn, enum ndb_dbs *indices,
15121512
// ensure they are all index dbs
15131513
for (i = 0; i < num_indices; i++) {
15141514
if (!ndb_db_is_index(indices[i])) {
1515-
fprintf(stderr, "ndb_rebuild_note_index: %s is not an index db\n", ndb_db_name(index));
1515+
fprintf(stderr, "ndb_rebuild_note_index: %s is not an index db\n", ndb_db_name(indices[i]));
15161516
return -1;
15171517
}
15181518
}

0 commit comments

Comments
 (0)