summaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/search.c b/search.c
index ec5c492..9827592 100644
--- a/search.c
+++ b/search.c
@@ -169,6 +169,10 @@ rs_search_for_block(rs_weak_sum_t weak_sum,
rs_signature_t const *sig, rs_stats_t * stats,
rs_long_t * match_where)
{
+ /* Caller must have called rs_build_hash_table() by now */
+ if (!sig->tag_table)
+ rs_fatal("Must have called rs_build_hash_table() by now");
+
rs_strong_sum_t strong_sum;
int got_strong = 0;
int hash_tag = gettag(weak_sum);