]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
rose: don't unconditionally init ll_buf etc
authorJustin Viiret <justin.viiret@intel.com>
Wed, 28 Sep 2016 07:17:58 +0000 (17:17 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 2 Dec 2016 00:22:27 +0000 (11:22 +1100)
This is only necessary (and already always done) if there is a long
literal table.

src/rose/stream.c

index 6e4d0add6ae3106fa440908194325acd631acbbe..703c09403b8b6c31fbb1af663275b295bc7cfeae 100644 (file)
@@ -551,10 +551,6 @@ void roseStreamExec(const struct RoseEngine *t, struct hs_scratch *scratch) {
     tctxt->minMatchOffset = offset;
     tctxt->minNonMpvMatchOffset = offset;
     tctxt->next_mpv_offset = 0;
-    tctxt->ll_buf = scratch->core_info.hbuf;
-    tctxt->ll_len = scratch->core_info.hlen;
-    tctxt->ll_buf_nocase = scratch->core_info.hbuf;
-    tctxt->ll_len_nocase = scratch->core_info.hlen;
 
     DEBUG_PRINTF("BEGIN: history len=%zu, buffer len=%zu groups=%016llx\n",
                  scratch->core_info.hlen, scratch->core_info.len, tctxt->groups);