Fix a 4-year-old used-uninitialized bug in regcomp.c.
[gnulib.git] / lib / regcomp.c
index fe4d243..a02418d 100644 (file)
@@ -1049,7 +1049,7 @@ optimize_utf8 (re_dfa_t *dfa)
          mb_chars = true;
        break;
       case ANCHOR:
-       switch (dfa->nodes[node].opr.idx)
+       switch (dfa->nodes[node].opr.ctx_type)
          {
          case LINE_FIRST:
          case LINE_LAST: