From: Justin Viiret Date: Wed, 28 Sep 2016 07:17:58 +0000 (+1000) Subject: rose: don't unconditionally init ll_buf etc X-Git-Tag: v4.4.0^2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9650d4fd08ae895ad40470abac1873ecd21a8d1;p=thirdparty%2Fvectorscan.git rose: don't unconditionally init ll_buf etc This is only necessary (and already always done) if there is a long literal table. --- diff --git a/src/rose/stream.c b/src/rose/stream.c index 6e4d0add..703c0940 100644 --- a/src/rose/stream.c +++ b/src/rose/stream.c @@ -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);