Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Aug 3, 2024
1 parent 4eb7d8d commit 60c7089
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/lwan-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ struct cache_entry *cache_get_and_ref_entry_with_ctx(struct cache *cache,

assert(cache);
assert(error);
assert(key);
#ifndef NDEBUG
if (cache->key.copy != identity_key_copy) {
assert(key);
}
#endif

*error = 0;

Expand Down

0 comments on commit 60c7089

Please sign in to comment.