Skip to content

Commit

Permalink
bug: use indices[i] as index is not defined
Browse files Browse the repository at this point in the history
Closes: #66
  • Loading branch information
franzaps authored and jb55 committed Jan 6, 2025
1 parent b4c2ff3 commit 51c9f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nostrdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 51c9f8c

Please sign in to comment.