hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/lib/ts_bm.c
....@@ -60,10 +60,12 @@
6060 struct ts_bm *bm = ts_config_priv(conf);
6161 unsigned int i, text_len, consumed = state->offset;
6262 const u8 *text;
63
- int shift = bm->patlen - 1, bs;
63
+ int bs;
6464 const u8 icase = conf->flags & TS_IGNORECASE;
6565
6666 for (;;) {
67
+ int shift = bm->patlen - 1;
68
+
6769 text_len = conf->get_next_block(consumed, &text, conf, state);
6870
6971 if (unlikely(text_len == 0))