Skip to content

Commit

Permalink
All instances of struct cyrusdb_backend set the compar field to non-n…
Browse files Browse the repository at this point in the history
…ull value
  • Loading branch information
dilyanpalauzov committed Sep 1, 2023
1 parent 7487746 commit 48f05b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/cyrusdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,6 @@ EXPORTED int cyrusdb_compar(struct db *db,
const char *a, int alen,
const char *b, int blen)
{
if (!db->backend->compar)
return bsearch_ncompare_raw(a, alen, b, blen);
return db->backend->compar(db->engine, a, alen, b, blen);
}

Expand Down

0 comments on commit 48f05b2

Please sign in to comment.