diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-06-22 15:22:46 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-06-22 15:22:46 -0400 |
commit | 3f061027b6f0e2fe75b59d17efe93c0b84535b1a (patch) | |
tree | 83e18e38987cf849b8cf0bd74754856072d51118 /support/regcomp.c | |
parent | f4df3ba54ba5c2a4aec34d643424834c03645dd9 (diff) | |
parent | a702a6b6d6009068f4608a865bdd06a07259cf67 (diff) | |
download | egawk-3f061027b6f0e2fe75b59d17efe93c0b84535b1a.tar.gz egawk-3f061027b6f0e2fe75b59d17efe93c0b84535b1a.tar.bz2 egawk-3f061027b6f0e2fe75b59d17efe93c0b84535b1a.zip |
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gawk
Diffstat (limited to 'support/regcomp.c')
-rw-r--r-- | support/regcomp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/support/regcomp.c b/support/regcomp.c index 5ac53701..c45e91fc 100644 --- a/support/regcomp.c +++ b/support/regcomp.c @@ -1,5 +1,5 @@ /* Extended regular expression matching and search library. - Copyright (C) 2002-2016 Free Software Foundation, Inc. + Copyright (C) 2002-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. @@ -961,8 +961,9 @@ static void internal_function init_word_char (re_dfa_t *dfa) { - int i, j, ch; dfa->word_ops_used = 1; + int i = 0; + int ch = 0; #ifndef GAWK if (BE (dfa->map_notascii == 0, 1)) { @@ -996,8 +997,8 @@ init_word_char (re_dfa_t *dfa) } #endif - for (i = 0, ch = 0; i < BITSET_WORDS; ++i) - for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch) + for (; i < BITSET_WORDS; ++i) + for (int j = 0; j < BITSET_WORD_BITS; ++j, ++ch) if (isalnum (ch) || ch == '_') dfa->word_char[i] |= (bitset_word_t) 1 << j; } |